@@ -56,19 +56,19 @@ class Property(BaseModel):
56
56
def get_type_string (self ) -> str :
57
57
"""Get schema typing string in any place"""
58
58
type_string = self .schema_data .get_type_string ()
59
- return type_string if self .required else f"MISSING [{ type_string } ]"
59
+ return type_string if self .required else f"Missing [{ type_string } ]"
60
60
61
61
def get_param_type_string (self ) -> str :
62
62
"""Get type string used by client codegen"""
63
63
type_string = self .schema_data .get_param_type_string ()
64
- return type_string if self .required else f"MISSING [{ type_string } ]"
64
+ return type_string if self .required else f"Missing [{ type_string } ]"
65
65
66
66
def get_model_imports (self ) -> Set [str ]:
67
67
"""Get schema needed imports for model codegen"""
68
68
imports = self .schema_data .get_model_imports ()
69
69
imports .add ("from pydantic import Field" )
70
70
if not self .required :
71
- imports .add ("from githubkit.utils import UNSET, MISSING " )
71
+ imports .add ("from githubkit.utils import UNSET, Missing " )
72
72
return imports
73
73
74
74
def get_type_imports (self ) -> Set [str ]:
@@ -82,7 +82,7 @@ def get_param_imports(self) -> Set[str]:
82
82
"""Get schema needed imports for typing params"""
83
83
imports = self .schema_data .get_param_imports ()
84
84
if not self .required :
85
- imports .add ("from githubkit.utils import UNSET, MISSING " )
85
+ imports .add ("from githubkit.utils import UNSET, Missing " )
86
86
return imports
87
87
88
88
def _get_default_string (self ) -> str :
0 commit comments