nebu 0.1.112__py3-none-any.whl → 0.1.114__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.
- nebu/processors/processor.py +10 -0
- {nebu-0.1.112.dist-info → nebu-0.1.114.dist-info}/METADATA +1 -1
- {nebu-0.1.112.dist-info → nebu-0.1.114.dist-info}/RECORD +6 -6
- {nebu-0.1.112.dist-info → nebu-0.1.114.dist-info}/WHEEL +0 -0
- {nebu-0.1.112.dist-info → nebu-0.1.114.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.112.dist-info → nebu-0.1.114.dist-info}/top_level.txt +0 -0
nebu/processors/processor.py
CHANGED
@@ -133,24 +133,34 @@ class Processor(Generic[InputType, OutputType]):
|
|
133
133
|
self._log_thread: Optional[threading.Thread] = None
|
134
134
|
|
135
135
|
# Attempt to infer OutputType if schema_ is not provided
|
136
|
+
print(">>> self.schema_: ", self.schema_)
|
137
|
+
print("self.__dict__: ", self.__dict__)
|
136
138
|
if self.schema_ is None and hasattr(self, "__orig_class__"):
|
137
139
|
type_args = get_args(self.__orig_class__) # type: ignore
|
140
|
+
print(">>> type_args: ", type_args)
|
138
141
|
if len(type_args) == 2:
|
139
142
|
output_type_candidate = type_args[1]
|
143
|
+
print(">>> output_type_candidate: ", output_type_candidate)
|
140
144
|
# Check if it looks like a Pydantic model class
|
141
145
|
if isinstance(output_type_candidate, type) and issubclass(
|
142
146
|
output_type_candidate, BaseModel
|
143
147
|
):
|
148
|
+
print(">>> output_type_candidate is a Pydantic model class")
|
144
149
|
logger.debug(
|
145
150
|
f"Inferred OutputType {output_type_candidate.__name__} from generic arguments."
|
146
151
|
)
|
147
152
|
self.schema_ = output_type_candidate
|
148
153
|
else:
|
154
|
+
print(">>> output_type_candidate is not a Pydantic model class")
|
149
155
|
logger.debug(
|
150
156
|
f"Second generic argument {output_type_candidate} is not a Pydantic BaseModel. "
|
151
157
|
"Cannot infer OutputType."
|
152
158
|
)
|
153
159
|
else:
|
160
|
+
print(
|
161
|
+
"Could not infer OutputType from generic arguments: wrong number of type args found "
|
162
|
+
f"(expected 2, got {len(type_args) if type_args else 0})."
|
163
|
+
)
|
154
164
|
logger.debug(
|
155
165
|
"Could not infer OutputType from generic arguments: wrong number of type args found "
|
156
166
|
f"(expected 2, got {len(type_args) if type_args else 0})."
|
@@ -18,11 +18,11 @@ nebu/processors/consumer_process_worker.py,sha256=h--eNFKaLbUayxn88mB8oGGdrU2liE
|
|
18
18
|
nebu/processors/decorate.py,sha256=aT6TT8QOOpl8HKo8kYdwmX6785_l9kSfoyUSPp4tkuY,58726
|
19
19
|
nebu/processors/default.py,sha256=cy4ETMdbdRGkrvbYec1o60h7mGDlGN5JsuUph0ENtDU,364
|
20
20
|
nebu/processors/models.py,sha256=g4B1t6Rgoy-NUEHBLeQc0EENzHXLDlWSio8Muv7cTDU,4093
|
21
|
-
nebu/processors/processor.py,sha256=
|
21
|
+
nebu/processors/processor.py,sha256=Gh-RQ2EBvO2Ab91CJOKmzHjZiWG6TKvftTS6_Ogyctk,23104
|
22
22
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
23
23
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
|
-
nebu-0.1.
|
25
|
-
nebu-0.1.
|
26
|
-
nebu-0.1.
|
27
|
-
nebu-0.1.
|
28
|
-
nebu-0.1.
|
24
|
+
nebu-0.1.114.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
25
|
+
nebu-0.1.114.dist-info/METADATA,sha256=6jG9Q52pjeBsLFyU5QwaZ7nSeL0bfGGYA9qaiIQvvTs,1798
|
26
|
+
nebu-0.1.114.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
27
|
+
nebu-0.1.114.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
28
|
+
nebu-0.1.114.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|