(self, name)
Get the EntryPoint in self matching name.
Get the EntryPoint in self matching name.
Get the EntryPoint in self matching name .
def __getitem__(self, name):  # -> EntryPoint:
        """
        Get the EntryPoint in self matching name.
        """
        if isinstance(name, int):
            warnings.warn(
                "Accessing entry points by index is deprecated. "
                "Cast to tuple if needed.",
                DeprecationWarning,
                stacklevel=2,
            )
            return super().__getitem__(name)
        try:
            return next(iter(self.select(name=name)))
        except StopIteration:
            raise KeyError(name)
def __getitem__ ( self , name ) : # -> EntryPoint: if isinstance ( name , int ) : warnings . warn ( "Accessing entry points by index is deprecated. " "Cast to tuple if needed." , DeprecationWarning , stacklevel = 2 , ) return super ( ) . __getitem__ ( name ) try : return next ( iter ( self . select ( name = name ) ) ) except StopIteration : raise KeyError ( name )