typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
It does not have this method for a long time now: https://github.com/sqlalchemy/sqlalchemy/blob/14bfbadfdf9260a1c40f63b31641b27fe9de12a0/lib/sqlalchemy/exc.py#L43-L117
I think that it is almost time (maybe after new mypy release) to remove `__nonzero__` methods from `typeshed`. Why? - python2 support is dropped from mypy - I removed `__nonzero__`...
In weakref.pyi, there is the following todo: https://github.com/python/typeshed/blob/master/stdlib/weakref.pyi#L127 ```python class finalize: # TODO: This is a good candidate for to be a `Generic[_P, _T]` class def __init__(self, __obj: object, __func:...
However, you can trigger them by manually closing and re-opening. This isn't an ideal state of things. There's a list of possible workarounds here: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs
https://github.com/python/mypy/issues/5107 Fixes #6987.
#6042/#6044 gives me new mypy complaints on my code base. `ChainMap` only ever writes to the first mapping in `maps`. That's my understanding. For example `ChainMap({}, defaults)` is a typical...
- [x] AsIs - [x] AutoField - [x] BareField - [x] BigAutoField - [x] BigBitField - [x] BigIntegerField - [x] BinaryUUIDField - [ ] BitField - [x] BlobField - [x]...
Release: https://pypi.org/project/protobuf/4.21.3/ Homepage: https://developers.google.com/protocol-buffers/ If stubtest fails for this PR: - Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR) - Fix stubtest failures...
In the past, we've worked around typechecker bugs and missing features in typeshed. But as the amount of typecheckers grows and type stubs are used for more that just type...
This is a follow up to resolve https://github.com/python/typeshed/issues/8372 by using `Callable[..., Any]` instead of `Callable[..., object]` in all apis. This is needed to workaround the mypy bug: https://github.com/python/mypy/issues/13220 Note I...