Skip to content

Commit 0191a96

Browse files
DaraanAlexWaygood
andauthored
Apply suggestions from code review
Co-authored-by: Alex Waygood <[email protected]>
1 parent 8a68272 commit 0191a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typing_extensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ def copy_with(self, params):
18181818
return super(_typing_ConcatenateGenericAlias, self).copy_with(params)
18191819

18201820

1821-
# 3.8-3.9
1821+
# 3.8-3.10
18221822
@typing._tp_cache
18231823
def _concatenate_getitem(self, parameters):
18241824
if parameters == ():
@@ -1838,7 +1838,7 @@ def _concatenate_getitem(self, parameters):
18381838

18391839

18401840
# 3.11+
1841-
if hasattr(typing, 'Concatenate') and sys.version_info[:2] != (3, 10):
1841+
if sys.version_info >= (3, 11):
18421842
Concatenate = typing.Concatenate
18431843
# 3.9-3.10
18441844
elif sys.version_info[:2] >= (3, 9):

0 commit comments

Comments
 (0)