master
Commits on Apr 8, 2022
Commits on Apr 7, 2022
-
psycopg2: correct return type (#7607)
Fixes the return type of `psycopg2.cursor.fetchone()` to match the psycopg2 code: https://github.com/psycopg/psycopg2/blob/1d3a89a0bba621dc1cc9b32db6d241bd2da85ad1/psycopg/cursor_type.c#L647-L651 https://github.com/psycopg/psycopg2/blob/1d3a89a0bba621dc1cc9b32db6d241bd2da85ad1/psycopg/cursor_type.c#L748-L786 It also matches the [psycopg2 documentation](https://www.psycopg.org/docs/cursor.html?highlight=copy_from#cursor.fetchone) as well as the [DB-API](https://peps.python.org/pep-0249/#fetchone)
-
-
-
-
Commits on Apr 6, 2022
-
* Add generic base class `DynamicData` * Add missing `key` prop to `OptionValue` * Fix `MethodFault` not inheriting from `Exception` * Fix `RetrieveOptions` default `maxObjects` type and default
-
Commits on Apr 5, 2022
Commits on Apr 4, 2022
Commits on Apr 3, 2022
-
Add
types.FunctionType.__module__
(#7581)This exists on builtins.function but not here.
Commits on Apr 1, 2022
-
Catch more potential type errors in
builtins.sum
(#7578)Use a ` TypeVar` bound to a `Protocol` defining `__add__`
-
Improve
imp._FileLike.__exit__
(#7577)The signature of this method currently doesn't work quite as intended: see PyCQA/flake8-pyi#199 (comment) Classes will [still be accepted](https://mypy-play.net/?mypy=latest&python=3.10&gist=77efe095d01edeb1a4614166f0c9cf68) as conforming to this protocol if they have more permissive signatures such as `def __exit__(self, *args: object) -> None: ...`
-
-
Commits on Mar 31, 2022
-
Exclude the Python-2 stdlib from flake8 CI check (#7569)
We should hopefully be getting rid of this entire subdirectory soon anyway (#7367). This will make PRs to flake8-pyi a lot easier.
-
Commits on Mar 30, 2022
-
logging/handlers.pyi: atTime is datetime.time (#7566)
It is marked as having type `datetime.datetime` but `atTime` refers to a time of day; only the fields on `datetime.time` are used. The [docs](https://docs.python.org/3/library/logging.handlers.html#timedrotatingfilehandler) clearly state that it is a `time`.
-
Commits on Mar 29, 2022
Commits on Mar 28, 2022
-
locale: getlocale may return None's (#7562)
According to the docs at https://docs.python.org/3/library/locale.html#locale.getlocale, this function may return None for either of the two items in the return sequence, which is missed in the current form. Also adjust `locale.setlocale()`, which can accept a tuple of `(None, None)` for the second argument.
-
mypy_test
: Add two more config options (#7560)`--enable-error-code ignore-without-code` means that mypy will ignore any type: ignore comments that don't have mypy error codes. It doesn't appear to have any effect on type: ignore comments that mypy_test doesn't use (e.g. because they're pyright- or stubtest-specific). `--strict-equality` means that mypy will raise errors if we do something silly like `if sys.version_info == "linux"`. flake8-pyi should also check this for us, but I don't see any reason not to have mypy check this as well.
Commits on Mar 27, 2022
-
passlib: Annotate various handler methods and fields (#7521)
Co-authored-by: Alex Waygood <[email protected]>