parameters: (
          self,
          include: "GlobPattern",
          *,
          exclude: "GlobPattern" = (),
          allow_empty: bool = True,
      )
docstring: Include ``module`` in the list of external modules the package can import.
          This will prevent dependency discovery from saving
          it in the package. The importer will load an external module directly from the standard import system.
          Code for extern modules must also exist in the process loading the package.
  
          Args:
              include (Union[List[str], str]): A string e.g. ``"my_package.my_subpackage"``, or list of strings
                  for the names of the modules to be externed. This can also be a glob-style pattern, as
                  described in :meth:`mock`.
  
              exclude (Union[List[str], str]): An optional pattern that excludes some patterns that match the
                  include string.
  
              allow_empty (bool): An optional flag that specifies whether the extern modules specified by this call
                  to the ``extern`` method must be matched to some module during packaging. If an extern module glob
                  pattern is added with ``allow_empty=False``, and :meth:`close` is called (either explicitly or via
                  ``__exit__``) before any modules match that pattern, an exception is thrown. If ``allow_empty=True``,
                  no such exception is thrown.
docstring_summary: Include ``module`` in the list of external modules the package can import.
          This will prevent dependency discovery from saving
          it in the package. The importer will load an external module directly from the standard import system.
          Code for extern modules must also exist in the process loading the package.
docstring_tokens: Include module in the list of external modules the package can import . This will prevent dependency discovery from saving it in the package . The importer will load an external module directly from the standard import system . Code for extern modules must also exist in the process loading the package .
function: def extern(
          self,
          include: "GlobPattern",
          *,
          exclude: "GlobPattern" = (),
          allow_empty: bool = True,
      ):
          """Include ``module`` in the list of external modules the package can import.
          This will prevent dependency discovery from saving
          it in the package. The importer will load an external module directly from the standard import system.
          Code for extern modules must also exist in the process loading the package.
  
          Args:
              include (Union[List[str], str]): A string e.g. ``"my_package.my_subpackage"``, or list of strings
                  for the names of the modules to be externed. This can also be a glob-style pattern, as
                  described in :meth:`mock`.
  
              exclude (Union[List[str], str]): An optional pattern that excludes some patterns that match the
                  include string.
  
              allow_empty (bool): An optional flag that specifies whether the extern modules specified by this call
                  to the ``extern`` method must be matched to some module during packaging. If an extern module glob
                  pattern is added with ``allow_empty=False``, and :meth:`close` is called (either explicitly or via
                  ``__exit__``) before any modules match that pattern, an exception is thrown. If ``allow_empty=True``,
                  no such exception is thrown.
  
          """
          self.patterns[GlobGroup(include, exclude=exclude)] = _PatternInfo(
              _ModuleProviderAction.EXTERN, allow_empty
          )
function_tokens: def extern ( self , include : "GlobPattern" , * , exclude : "GlobPattern" = ( ) , allow_empty : bool = True , ) : self . patterns [ GlobGroup ( include , exclude = exclude ) ] = _PatternInfo ( _ModuleProviderAction . EXTERN , allow_empty )