nebu 0.1.112__tar.gz → 0.1.113__tar.gz
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-0.1.112/src/nebu.egg-info → nebu-0.1.113}/PKG-INFO +1 -1
- {nebu-0.1.112 → nebu-0.1.113}/pyproject.toml +1 -1
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/processors/processor.py +8 -0
- {nebu-0.1.112 → nebu-0.1.113/src/nebu.egg-info}/PKG-INFO +1 -1
- {nebu-0.1.112 → nebu-0.1.113}/LICENSE +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/README.md +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/setup.cfg +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/__init__.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/auth.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/builders/builder.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/builders/models.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/cache.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/config.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/containers/container.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/containers/models.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/data.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/errors.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/logging.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/meta.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/namespaces/models.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/namespaces/namespace.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/orign.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/processors/consumer.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/processors/consumer_process_worker.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/processors/decorate.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/processors/default.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/processors/models.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/redis/models.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu/services/service.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu.egg-info/SOURCES.txt +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu.egg-info/dependency_links.txt +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu.egg-info/requires.txt +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/src/nebu.egg-info/top_level.txt +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/tests/test_bucket.py +0 -0
- {nebu-0.1.112 → nebu-0.1.113}/tests/test_containers.py +0 -0
@@ -135,22 +135,30 @@ class Processor(Generic[InputType, OutputType]):
|
|
135
135
|
# Attempt to infer OutputType if schema_ is not provided
|
136
136
|
if self.schema_ is None and hasattr(self, "__orig_class__"):
|
137
137
|
type_args = get_args(self.__orig_class__) # type: ignore
|
138
|
+
print(">>> type_args: ", type_args)
|
138
139
|
if len(type_args) == 2:
|
139
140
|
output_type_candidate = type_args[1]
|
141
|
+
print(">>> output_type_candidate: ", output_type_candidate)
|
140
142
|
# Check if it looks like a Pydantic model class
|
141
143
|
if isinstance(output_type_candidate, type) and issubclass(
|
142
144
|
output_type_candidate, BaseModel
|
143
145
|
):
|
146
|
+
print(">>> output_type_candidate is a Pydantic model class")
|
144
147
|
logger.debug(
|
145
148
|
f"Inferred OutputType {output_type_candidate.__name__} from generic arguments."
|
146
149
|
)
|
147
150
|
self.schema_ = output_type_candidate
|
148
151
|
else:
|
152
|
+
print(">>> output_type_candidate is not a Pydantic model class")
|
149
153
|
logger.debug(
|
150
154
|
f"Second generic argument {output_type_candidate} is not a Pydantic BaseModel. "
|
151
155
|
"Cannot infer OutputType."
|
152
156
|
)
|
153
157
|
else:
|
158
|
+
print(
|
159
|
+
"Could not infer OutputType from generic arguments: wrong number of type args found "
|
160
|
+
f"(expected 2, got {len(type_args) if type_args else 0})."
|
161
|
+
)
|
154
162
|
logger.debug(
|
155
163
|
"Could not infer OutputType from generic arguments: wrong number of type args found "
|
156
164
|
f"(expected 2, got {len(type_args) if type_args else 0})."
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|