Check if the given type is a dataclasses.InitVar.
(annotation: type)
| 250 | |
| 251 | |
| 252 | def is_initvar(annotation: type) -> typing.TypeGuard[dataclasses.InitVar]: |
| 253 | """Check if the given type is a dataclasses.InitVar.""" |
| 254 | return annotation is dataclasses.InitVar or type(annotation) is dataclasses.InitVar |
| 255 | |
| 256 | |
| 257 | def is_mod_object_type(cls) -> bool: |
no outgoing calls
no test coverage detected