MCPcopy Create free account
hub / github.com/dagger/dagger / is_initvar

Function is_initvar

sdk/python/src/dagger/mod/_utils.py:252–254  ·  view source on GitHub ↗

Check if the given type is a dataclasses.InitVar.

(annotation: type)

Source from the content-addressed store, hash-verified

250
251
252def 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
257def is_mod_object_type(cls) -> bool:

Callers 2

to_typedefFunction · 0.90
get_metaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected