diff --git a/stdlib/_csv.pyi b/stdlib/_csv.pyi index 1dc43780f..4329a875b 100644 --- a/stdlib/_csv.pyi +++ b/stdlib/_csv.pyi @@ -1,5 +1,8 @@ from typing import Any, Iterable, Iterator, List, Protocol, Type, Union +# __version__ is deliberately not defined here or in csv.pyi, +# as it appears to have been hardcoded at "1.0" for a very long time! + QUOTE_ALL: int QUOTE_MINIMAL: int QUOTE_NONE: int diff --git a/stdlib/csv.pyi b/stdlib/csv.pyi index 0b69cb227..60dc597f0 100644 --- a/stdlib/csv.pyi +++ b/stdlib/csv.pyi @@ -25,6 +25,9 @@ if sys.version_info >= (3, 8): else: from collections import OrderedDict as _DictReadMapping +# __version__ is deliberately not defined here or in _csv.pyi, +# as it appears to have been hardcoded at "1.0" for a very long time! + _T = TypeVar("_T") class excel(Dialect):