Skip to content

Commit b4b6f31

Browse files
authored
Removes nulltype from python, updates samples (#8555)
* Removes nulltype from python, updates samples * Removes nulltype from the python requirements * Removes nulltype import in models, moves requiredVars to optionalVars when approprieate
1 parent 128f300 commit b4b6f31

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

.generator/templates/model.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import re # noqa: F401
44
import sys # noqa: F401
55

6-
import nulltype # noqa: F401
7-
86
from {{packageName}}.model_utils import ( # noqa: F401
97
ApiTypeError,
108
ModelComposed,

.generator/templates/model_templates/method_init_composed.mustache

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
'{{name}}': {{name}},
2525
{{/requiredVars}}
2626
}
27-
# remove args whose value is Null because they are unset
28-
required_arg_names = list(required_args.keys())
29-
for required_arg_name in required_arg_names:
30-
if required_args[required_arg_name] is nulltype.Null:
31-
del required_args[required_arg_name]
3227
model_args = {}
3328
model_args.update(required_args)
3429
model_args.update(kwargs)
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
nulltype
21
python_dateutil >= 2.5.3
32
setuptools >= 21.0.0
43
urllib3 >= 1.25.3

.generator/templates/setup.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ VERSION = "{{packageVersion}}"
1717
REQUIRES = [
1818
"urllib3 >= 1.25.3",
1919
"python-dateutil",
20-
"nulltype",
2120
{{#asyncio}}
2221
"aiohttp >= 3.0.0",
2322
{{/asyncio}}

0 commit comments

Comments
 (0)