about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2021-08-01 18:58:21 +0200
committerrajdakin <rajdakin@gmail.com>2021-08-01 18:58:21 +0200
commit2b920d69366d0a01daa853cd047f9415f85da10f (patch)
treec1ff667305e67a232777b15531a1164b2535cd32
parent01bf3e741e2a2e574b55b1a4bf75f4591073dfbd (diff)
downloadbox64-2b920d69366d0a01daa853cd047f9415f85da10f.tar.gz
box64-2b920d69366d0a01daa853cd047f9415f85da10f.zip
Removed the Mapping import
-rwxr-xr-xrebuild_wrappers.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/rebuild_wrappers.py b/rebuild_wrappers.py
index d8cc007b..f51c51ba 100755
--- a/rebuild_wrappers.py
+++ b/rebuild_wrappers.py
@@ -8,20 +8,20 @@ try:
 	if sys.version_info.minor >= 9:
 		# Python 3.9+
 		from typing import Generic, NewType, Optional, TypeVar, Union, final
-		from collections.abc import Iterable, Mapping
+		from collections.abc import Iterable
 		Dict = dict
 		List = list
 		Tuple = tuple
 	elif sys.version_info.minor >= 8:
 		# Python [3.8, 3.9)
-		from typing import Dict, List, Tuple, Generic, Iterable, Mapping, NewType, Optional, TypeVar, Union, final
+		from typing import Dict, List, Tuple, Generic, Iterable, NewType, Optional, TypeVar, Union, final
 	elif (sys.version_info.minor >= 5) and (sys.version_info.micro >= 2):
 		# Python [3.5.2, 3.8)
-		from typing import Dict, List, Tuple, Generic, Iterable, Mapping, NewType, Optional, TypeVar, Union
+		from typing import Dict, List, Tuple, Generic, Iterable, NewType, Optional, TypeVar, Union
 		final = lambda fun: fun # type: ignore
 	elif sys.version_info.minor >= 5:
 		# Python [3.5, 3.5.2)
-		from typing import Dict, List, Tuple, Generic, Iterable, Mapping, Optional, TypeVar, Union
+		from typing import Dict, List, Tuple, Generic, Iterable, Optional, TypeVar, Union
 		class GTDummy:
 			def __getitem__(self, _): return self
 		final = lambda fun: fun # type: ignore
@@ -37,7 +37,6 @@ try:
 		List = GTDummy() # type: ignore
 		Generic = GTDummy() # type: ignore
 		Iterable = GTDummy() # type: ignore
-		Mapping = GTDummy() # type: ignore
 		Optional = GTDummy() # type: ignore
 		def NewType(_, b): return b # type: ignore
 		Tuple = GTDummy() # type: ignore