We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2108907 commit c85adc2Copy full SHA for c85adc2
openapi_python_client/parser/properties.py
@@ -63,7 +63,7 @@ def get_imports(self, *, prefix: str) -> Set[str]:
63
Args:
64
prefix: A prefix to put before any relative (local) module names.
65
"""
66
- if not self.required:
+ if self.nullable or not self.required:
67
return {"from typing import Optional"}
68
return set()
69
0 commit comments