Closed auscompgeek closed 2 years ago
pyright is a bit stricter about py.typed packages:
py.typed
__init__.py
import ... as ...
__all__
will_reset_to
"Literal[True]" is incompatible with "will_reset_to[bool]" (reportGeneralTypeIssues)
Also fix a couple of linter issues so the type stub is a bit closer to reality.
pyright is a bit stricter about
py.typed
packages:__init__.py
are not considered exported, unless ifimport ... as ...
is used or they're listed in__all__
(reportPrivateImportUsage)will_reset_to
field would be disallowed, e.g."Literal[True]" is incompatible with "will_reset_to[bool]" (reportGeneralTypeIssues)
Also fix a couple of linter issues so the type stub is a bit closer to reality.