usort/config.py
def is_side_effect_import(self, base: str, names: List[str]) -> bool:
        """
        Determine if any of the given imports are in the list with known side effects.

        Takes a "base" (possibly empty) and a list of imported names, and checks if
        any of the base+name combinations (or a prefix of that combination) is in the
        list of know modules with side effects.
        """
        if self.side_effect_modules:
            candidates: Set[str] = set()
            for name in names:
                candidates.add(f"{base}.{name}" if base else name)
            return any(self.side_effect_re.match(candidate) for candidate in candidates)
        return False

        Determine if any of the given imports are in the list with known side effects.

        Takes a "base" (possibly empty) and a list of imported names, and checks if
        any of the base+name combinations (or a prefix of that combination) is in the
        list of know modules with side effects.
        
Determine if any of the given imports are in the list with known side effects.
Takes a "base" (possibly empty) and a list of imported names, and checks if
any of the base+name combinations (or a prefix of that combination) is in the
list of know modules with side effects.
Determine if any of the given imports are in the list with known side effects . Takes a " base " ( possibly empty ) and a list of imported names and checks if any of the base + name combinations ( or a prefix of that combination ) is in the list of know modules with side effects .
def is_side_effect_import(self, base: str, names: List[str]) -> bool:
        if self.side_effect_modules:
            candidates: Set[str] = set()
            for name in names:
                candidates.add(f"{base}.{name}" if base else name)
            return any(self.side_effect_re.match(candidate) for candidate in candidates)
        return False
def is_side_effect_import ( self , base : str , names : List [ str ] ) -> bool : if self . side_effect_modules : candidates : Set [ str ] = set ( ) for name in names : candidates . add ( f"{base}.{name}" if base else name ) return any ( self . side_effect_re . match ( candidate ) for candidate in candidates ) return False
Determine if any of the given imports are in the list with known side effects.
Determine if any of the given imports are in the list with known side effects .
"""
        Determine if any of the given imports are in the list with known side effects.

        Takes a "base" (possibly empty) and a list of imported names, and checks if
        any of the base+name combinations (or a prefix of that combination) is in the
        list of know modules with side effects.
        """
self
base
str
names
List[str]