Replacement for the instance_of method of typish, which now uses the isa method of the runtype package.
(obj: object, *args: object)
| 180 | |
| 181 | |
| 182 | def instance_of(obj: object, *args: object) -> bool: |
| 183 | """ |
| 184 | Replacement for the instance_of method of typish, which |
| 185 | now uses the isa method of the runtype package. |
| 186 | """ |
| 187 | return isa(obj, cast(tuple[type[Any], ...], args)) |
no outgoing calls