Skip to content

Commit c8c5e9e

Browse files
authored
Enable PYI059 (#15399)
1 parent 3f74e6e commit c8c5e9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ select = [
106106
"PYI044", # `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
107107
"PYI055", # Multiple `type[T]` usages in a union. Combine them into one, e.g., `type[{union_str}]`.
108108
"PYI058", # Use `{return_type}` as the return value for simple `{method}` methods
109-
# "PYI059", # TODO: Add when dropping Python 3.9 support
109+
"PYI059", # Checks for classes inheriting from typing.Generic[] where Generic[] is not the last base class in the bases tuple
110110
"PYI061", # Use `None` rather than `Literal[None]`
111111
"PYI062", # Duplicate literal member `{}`
112112
"PYI064", # `Final[Literal[{literal}]]` can be replaced with a bare Final

0 commit comments

Comments
 (0)