def get_old_value(
        self, args: Sequence[Any], kwargs: Dict[str, Any], default: Any = None
    ) -> Any:
        """Returns the old value of the named argument without replacing it.

        Returns ``default`` if the argument is not present.
        """
        if self.arg_pos is not None and len(args) > self.arg_pos:
            return args[self.arg_pos]
        else:
            return kwargs.get(self.name, default)
def get_old_value ( self , args : Sequence [ Any ] , kwargs : Dict [ str , Any ] , default : Any = None ) -> Any : if self . arg_pos is not None and len ( args ) > self . arg_pos : return args [ self . arg_pos ] else : return kwargs . get ( self . name , default )
Returns the old value of the named argument without replacing it.

        Returns ``default`` if the argument is not present.