File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1822,7 +1822,9 @@ def set_external_attr(self):
1822
1822
self .keywords .append (KEYWORD_ID_DICT ["external" ])
1823
1823
self .is_external = True
1824
1824
1825
- def check_definition (self , obj_tree , known_types = {}, interface = False ):
1825
+ def check_definition (self , obj_tree , known_types = None , interface = False ):
1826
+ if known_types is None :
1827
+ known_types = {}
1826
1828
# Check for type definition in scope
1827
1829
type_match = FRegex .DEF_KIND .match (self .get_desc (no_link = True ))
1828
1830
if type_match is not None :
@@ -2006,7 +2008,9 @@ def resolve_link(self, obj_tree):
2006
2008
def is_callable (self ):
2007
2009
return True
2008
2010
2009
- def check_definition (self , obj_tree , known_types = {}, interface = False ):
2011
+ def check_definition (self , obj_tree , known_types = None , interface = False ):
2012
+ if known_types is None :
2013
+ known_types = {}
2010
2014
return None , known_types
2011
2015
2012
2016
You can’t perform that action at this time.
0 commit comments