Lines Matching refs:val
807 def is_str(val: Union[str, float]):
809 if isinstance(val, str):
810 # Type of ``val`` is narrowed to ``str``
813 # Else, type of ``val`` is narrowed to ``float``.
1290 def __setattr__(self, attr, val):
1293 super().__setattr__(attr, val)
1295 setattr(self.__origin__, attr, val)
2246 def cast(typ, val):
2254 return val
2257 def assert_type(val, typ, /):
2270 return val