File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ Glossary
24
24
Releases
25
25
---------------------
26
26
27
+ v1.4.3
28
+ ================
29
+ - Fixed an error when a subclass's generic accepts less types than the original
30
+
31
+
27
32
v1.4.2
28
33
================
29
34
- Fixed issue with typing conversion.
Original file line number Diff line number Diff line change 27
27
SOFTWARE.
28
28
"""
29
29
30
- __version__ = "1.4.2 "
30
+ __version__ = "1.4.3 "
31
31
32
32
33
33
from .object_frame import *
Original file line number Diff line number Diff line change @@ -227,8 +227,10 @@ def remove_classes(types: list):
227
227
# Process abstract classes and polymorphism
228
228
new_origins = []
229
229
for origin in cls .convert_types (origin ):
230
- if issubclass_noexcept (origin , ( Generic , Iterable ) ):
230
+ if issubclass_noexcept (origin , Iterable ):
231
231
new_origins .append (origin [tuple (new_types )])
232
+ elif issubclass_noexcept (origin , Generic ):
233
+ new_origins .append (origin [tuple (new_types [:len (origin .__parameters__ )])])
232
234
else :
233
235
new_origins .append (origin )
234
236
You can’t perform that action at this time.
0 commit comments