mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
dev-python/stone: enable python3_11
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
15
dev-python/stone/files/stone-3.3.1-python3_11.patch
Normal file
15
dev-python/stone/files/stone-3.3.1-python3_11.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
Replace method deprecated in 3.10 and removed in 3.11. Upstream is slow to release a fix.
|
||||
|
||||
See also: https://github.com/dropbox/stone/issues/288
|
||||
|
||||
--- a/stone/frontend/ir_generator.py
|
||||
+++ b/stone/frontend/ir_generator.py
|
||||
@@ -1074,7 +1074,7 @@
|
||||
assert issubclass(data_type_class, DataType), \
|
||||
'Expected stone.data_type.DataType, got %r' % data_type_class
|
||||
|
||||
- argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
|
||||
+ argspec = inspect.getfullargspec(data_type_class.__init__)
|
||||
argspec.args.remove('self')
|
||||
num_args = len(argspec.args)
|
||||
# Unfortunately, argspec.defaults is None if there are no defaults
|
||||
Reference in New Issue
Block a user