Closed EvanKirshenbaum closed 5 months ago
This issue was referenced by the following commit before migration:
I just added
# type: ignore [type-var]
and that got rid of the warning. I should look at some point to see if they have a point, but I'm nearly certain it's safe.
The MyPy scans on push for Python 3.10 (but not 3.9) are now giving me an error on the declaration of
Postable
:The error is
The problem is that
Postable
is generic in a contravariant type, whileDelayed
is generic in a covariant type:This is correct and not a problem, but I'm going to have to figure out how to get MyPy not to complain about it. (Or, I guess, learn why it is, in fact, not a safe thing to do.)
Migrated from internal repository. Originally created by @EvanKirshenbaum on Jan 07, 2023 at 2:16 PM PST. Closed on Jan 07, 2023 at 2:24 PM PST.