Skip to content

Commit bb9bc23

Browse files
committed
Adapted some typing requirements
1 parent a957e98 commit bb9bc23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
package = "openapi_python_generator"
26-
python_versions = ["3.10", "3.9", "3.8", "3.7"]
26+
python_versions = ["3.9", "3.8"]
2727
nox.needs_version = ">= 2021.6.6"
2828
nox.options.sessions = (
2929
"pre-commit",

src/openapi_python_generator/language_converters/python/model_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _generate_property_from_schema(name: str, schema: Schema, parentSchema: Opti
6060
:param parentSchema: Component this belongs to
6161
:return: Property
6262
"""
63-
required = parentSchema.required is not None and name in parentSchema.required
63+
required = parentSchema is not None and parentSchema.required is not None and name in parentSchema.required
6464
return Property(
6565
name=name,
6666
type=type_converter(schema, required),

0 commit comments

Comments
 (0)