All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
re. import, the ipynb code was assuming that typing-extensions would
always be available, but that's not the case! There's an environment
marker on the requirement meaning it won't get installed on 3.10 or
higher. The test suite didn't catch this issue since aiohttp pulls in
typing-extensions unconditionally.
- Parsing support has been added for unparenthesized walruses in set literals, set
comprehensions, and indices (#2447).
- Pin `setuptools-scm` build-time dependency version (#2457)
- Parsing support has been added for unparenthesized walruses in set literals, set
comprehensions, and indices (#2447).
- Pin `setuptools-scm` build-time dependency version (#2457)
+- Exclude typing-extensions version 3.10.0.1 due to it being broken on Python 3.10
+ (#2460)
"regex>=2020.1.8",
"pathspec>=0.9.0, <1",
"dataclasses>=0.6; python_version < '3.7'",
"regex>=2020.1.8",
"pathspec>=0.9.0, <1",
"dataclasses>=0.6; python_version < '3.7'",
- "typing_extensions>=3.10.0.0; python_version < '3.10'",
+ "typing_extensions>=3.10.0.0",
+ # 3.10.0.1 is broken on at least Python 3.10,
+ # https://github.com/python/typing/issues/865
+ "typing_extensions!=3.10.0.1; python_version >= '3.10'",
"mypy_extensions>=0.4.3",
],
extras_require={
"mypy_extensions>=0.4.3",
],
extras_require={
"""Functions to process IPython magics with."""
"""Functions to process IPython magics with."""
from functools import lru_cache
import dataclasses
import ast
from functools import lru_cache
import dataclasses
import ast
+from typing import Dict, List, Tuple, Optional
-from typing import List, Tuple
-from typing import Optional
-from typing_extensions import TypeGuard
+if sys.version_info >= (3, 10):
+ from typing import TypeGuard
+else:
+ from typing_extensions import TypeGuard
+
from black.report import NothingChanged
from black.output import out
from black.report import NothingChanged
from black.output import out