wikitextparser/_template.py
def get_arg(name: str, args: Iterable[Argument]) -> Optional[Argument]:
    """Return the first argument in the args that has the given name.

    Return None if no such argument is found.

    As the computation of self.arguments is a little costly, this
    function was created so that other methods that have already computed
    the arguments use it instead of calling self.get_arg directly.
    """
    for arg in args:
        if arg.name.strip(WS) == name.strip(WS):
            return arg
    return None
def get_arg(name: str, args: Iterable[Argument]) -> Optional[Argument]:
    for arg in args:
        if arg.name.strip(WS) == name.strip(WS):
            return arg
    return None
def get_arg ( name : str , args : Iterable [ Argument ] ) -> Optional [ Argument ] : for arg in args : if arg . name . strip ( WS ) == name . strip ( WS ) : return arg return None
Return the first argument in the args that has the given name.

    Return None if no such argument is found.

    As the computation of self.arguments is a little costly, this
    function was created so that other methods that have already computed
    the arguments use it instead of calling self.get_arg directly.
Return the first argument in the args that has the given name .