schemez 0.2.3__py3-none-any.whl → 0.2.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
schemez/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.2.3"
1
+ __version__ = "0.2.4"
2
2
 
3
3
 
4
4
  from schemez.schema import Schema
@@ -114,7 +114,7 @@ class InlineSchemaDef(BaseSchemaDef):
114
114
  fields: dict[str, SchemaField]
115
115
  """A dictionary containing all fields."""
116
116
 
117
- def get_schema(self) -> type[Schema]: # type: ignore
117
+ def get_schema(self) -> type[BaseModel]: # type: ignore
118
118
  """Create Pydantic model from inline definition."""
119
119
  fields = {}
120
120
  for name, field in self.fields.items():
@@ -210,7 +210,12 @@ class InlineSchemaDef(BaseSchemaDef):
210
210
  fields[name] = (python_type, field_info)
211
211
 
212
212
  cls_name = self.description or "ResponseType"
213
- return create_model(cls_name, **fields, __base__=Schema, __doc__=self.description) # type: ignore[call-overload]
213
+ return create_model(
214
+ cls_name,
215
+ **fields,
216
+ __base__=BaseModel,
217
+ __doc__=self.description,
218
+ ) # type: ignore[call-overload]
214
219
 
215
220
 
216
221
  class ImportedSchemaDef(BaseSchemaDef):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: schemez
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Pydantic shim for config stuff
5
5
  Project-URL: Documentation, https://phil65.github.io/schemez/
6
6
  Project-URL: Source, https://github.com/phil65/schemez
@@ -1,4 +1,4 @@
1
- schemez/__init__.py,sha256=QrVN-zXLiAwYYdMbCxin08TTcks9QkRXZt4FyS5XwLw,565
1
+ schemez/__init__.py,sha256=q23JyNo20vslOAU0BXRZkfYba4iLGMSMQ7zs7t-4oFA,565
2
2
  schemez/code.py,sha256=usZLov9i5KpK1W2VJxngUzeetgrINtodiooG_AxN-y4,2072
3
3
  schemez/convert.py,sha256=b6Sz11lq0HvpXfMREOqnnw8rcVg2XzTKhjjPNc4YIoE,4403
4
4
  schemez/docstrings.py,sha256=kmd660wcomXzKac0SSNYxPRNbVCUovrpmE9jwnVRS6c,4115
@@ -7,8 +7,8 @@ schemez/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  schemez/pydantic_types.py,sha256=iiaHqVkWVd1TZry933aDYJnyzMD0HJIABfROR9txxhA,1581
8
8
  schemez/schema.py,sha256=VeNSFec6aCR9GgqXLBE3t4TZeUoS9BDmIoofe9nbqVI,8804
9
9
  schemez/schemadef/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- schemez/schemadef/schemadef.py,sha256=43GQ8puUBByiSMaDbR6sJ0B-AjRSYQhEvX2Rx4gmjHI,8609
11
- schemez-0.2.3.dist-info/METADATA,sha256=hI62AloXcRv4SKKeiSmdycBJOuIZWdWfLGeIueu8ss0,5891
12
- schemez-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- schemez-0.2.3.dist-info/licenses/LICENSE,sha256=AteGCH9r177TxxrOFEiOARrastASsf7yW6MQxlAHdwA,1078
14
- schemez-0.2.3.dist-info/RECORD,,
10
+ schemez/schemadef/schemadef.py,sha256=LTl6aRS-xovwUv-HWQ7UMZk_k4Jg9MjzVTpZswUplIE,8674
11
+ schemez-0.2.4.dist-info/METADATA,sha256=1SjSzieIJhza0YqDjjrOaTRBtDmUWjs9JR5wq1AzMnc,5891
12
+ schemez-0.2.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ schemez-0.2.4.dist-info/licenses/LICENSE,sha256=AteGCH9r177TxxrOFEiOARrastASsf7yW6MQxlAHdwA,1078
14
+ schemez-0.2.4.dist-info/RECORD,,