# This module is commonly used by others in here and should avoid
# taking any unnecessary dependencies back on them.
# This module is commonly used by others in here and should avoid
# taking any unnecessary dependencies back on them.
def should_ignore_filename(self, filename: str) -> bool:
return 'importlib' in filename or 'six.py' in filename
def should_ignore_filename(self, filename: str) -> bool:
return 'importlib' in filename or 'six.py' in filename
def find_spec(self, loaded_module, path=None, target=None):
s = stack()
for x in range(3, len(s)):
def find_spec(self, loaded_module, path=None, target=None):
s = stack()
for x in range(3, len(s)):
def find_importer(self, module: str):
if module in self.tree_node_by_module:
node = self.tree_node_by_module[module]
def find_importer(self, module: str):
if module in self.tree_node_by_module:
node = self.tree_node_by_module[module]