typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
The methods requires the pattern arg to be of type str, not Pattern.
solves #12149, the gist of which is: - a Redis client (redis.Redis) can be obtained by using either its constructor, or `from_url` method - connection options can be specified as...
See https://github.com/python/typeshed/issues/10185 The modified types reflect the real runtime types of these methods, it is more accurate now.
### Summary When overriding `__new__()` in a `BaseException` subclass, a call of form `super().__new__(cls, arg0, [arg1, [arg2, ...]]])` causes type checkers to complain about unused positional argument(s), even though the...
The recent change to better type the `sort` and `filter` kwargs had the side effect of making them required. So we fix to supply a default value for the typing...
I used stubgen and broke out a few classes.
---- Deferred: See this discussion: https://discuss.python.org/t/constraining-generic-argument-types/56809
Also add prefix to tmpdir name
Currently, keras is pinned to `>=3.3.3,=3.4`, but this currently causes stubtest to fail.