Skip to content
4 changes: 4 additions & 0 deletions mypy/typeshed/stdlib/csv.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions mypy/typeshed/stdlib/fcntl.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mypy/typeshed/stdlib/tarfile.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading