diff --git a/mypy/typeshed/stdlib/csv.pyi b/mypy/typeshed/stdlib/csv.pyi index f3b4286a6b49..18b36b20160f 100644 --- a/mypy/typeshed/stdlib/csv.pyi +++ b/mypy/typeshed/stdlib/csv.pyi @@ -54,6 +54,10 @@ if sys.version_info < (3, 13): _T = TypeVar("_T") +# Note that this is often the wrong class: it is only useful for sub-classing +# (e.g. csv.excel). Dialect objects returned at runtime, such as the return +# value of get_dialect(), are usually _csv.Dialect, which is not a subclass +# of csv.Dialect. class Dialect: delimiter: str quotechar: str | None diff --git a/mypy/typeshed/stdlib/fcntl.pyi b/mypy/typeshed/stdlib/fcntl.pyi index c17f31c4bebe..dff4ae50277d 100644 --- a/mypy/typeshed/stdlib/fcntl.pyi +++ b/mypy/typeshed/stdlib/fcntl.pyi @@ -121,6 +121,9 @@ if sys.platform != "win32": RWH_WRITE_LIFE_LONG: Final = 4 RWH_WRITE_LIFE_EXTREME: Final = 5 + if sys.version_info >= (3, 14) and sys.platform == "linux": + F_DUPFD_QUERY: Final[int] + if sys.version_info >= (3, 11) and sys.platform == "darwin": F_OFD_SETLK: Final = 90 F_OFD_SETLKW: Final = 91 diff --git a/mypy/typeshed/stdlib/tarfile.pyi b/mypy/typeshed/stdlib/tarfile.pyi index c7526d392a42..5def3717a0a2 100644 --- a/mypy/typeshed/stdlib/tarfile.pyi +++ b/mypy/typeshed/stdlib/tarfile.pyi @@ -334,7 +334,7 @@ class TarFile: pax_headers: Mapping[str, str] | None = ..., debug: Literal[0, 1, 2, 3] | None = None, # default 0 errorlevel: Literal[0, 1, 2] | None = None, # default 1 - preset: Literal[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | None = ..., + preset: int | None = ..., ) -> Self: ... @overload @classmethod @@ -354,7 +354,7 @@ class TarFile: pax_headers: Mapping[str, str] | None = ..., debug: Literal[0, 1, 2, 3] | None = None, # default 0 errorlevel: Literal[0, 1, 2] | None = None, # default 1 - preset: Literal[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | None = ..., + preset: int | None = ..., ) -> Self: ... if sys.version_info >= (3, 14): @overload