File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2656,7 +2656,7 @@ class ITEM_MAP:
26562656 def __init__ (self , * values ):
26572657 if len (values ) != 1 :
26582658 raise TypeError (f"Expected 1 arguments, found { len (values )} " )
2659- if not isinstance (values [0 ], dict [ str , MDocItem ] ):
2659+ if not isinstance (values [0 ], dict ):
26602660 raise TypeError (f"unexpected type for tuple element 0 - expected 'dict[str, MDocItem]', got '{ type (values [0 ])} '" )
26612661 self ._values = values
26622662
@@ -2674,7 +2674,7 @@ class ARRAY:
26742674 def __init__ (self , * values ):
26752675 if len (values ) != 1 :
26762676 raise TypeError (f"Expected 1 arguments, found { len (values )} " )
2677- if not isinstance (values [0 ], typing . List [ MDocItem ] ):
2677+ if not isinstance (values [0 ], list ):
26782678 raise TypeError (f"unexpected type for tuple element 0 - expected 'typing.List[MDocItem]', got '{ type (values [0 ])} '" )
26792679 self ._values = values
26802680
You can’t perform that action at this time.
0 commit comments