TypeDAL 5.0.3__tar.gz → 5.0.4__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.
- {typedal-5.0.3 → typedal-5.0.4}/PKG-INFO +1 -1
- {typedal-5.0.3 → typedal-5.0.4}/pyproject.toml +1 -1
- {typedal-5.0.3 → typedal-5.0.4}/pyproject.toml.orig +1 -1
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/types.py +13 -1
- {typedal-5.0.3 → typedal-5.0.4}/README.md +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/__about__.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/__init__.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/asynchronous.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/caching.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/cli.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/config.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/constants.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/core.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/define.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/enum_helpers.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/fields.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/for_py4web.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/for_web2py.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/helpers.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/mixins.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/py.typed +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/query_builder.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/relationships.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/rows.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/serializers/as_json.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/serializers/typescript.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/tables.py +0 -0
- {typedal-5.0.3 → typedal-5.0.4}/src/typedal/web2py_py4web_shared.py +0 -0
|
@@ -203,6 +203,18 @@ class Field(_Field):
|
|
|
203
203
|
|
|
204
204
|
_rname: str
|
|
205
205
|
|
|
206
|
+
def __eq__(self, other: t.Any) -> Query: # type: ignore[override]
|
|
207
|
+
"""Comparing fields produces a PyDAL query."""
|
|
208
|
+
return t.cast(Query, super().__eq__(other))
|
|
209
|
+
|
|
210
|
+
def __ne__(self, other: t.Any) -> Query: # type: ignore[override]
|
|
211
|
+
"""Comparing fields produces a PyDAL query."""
|
|
212
|
+
return t.cast(Query, super().__ne__(other))
|
|
213
|
+
|
|
214
|
+
def __hash__(self) -> int:
|
|
215
|
+
"""Keep fields hashable after overriding equality."""
|
|
216
|
+
return super().__hash__()
|
|
217
|
+
|
|
206
218
|
|
|
207
219
|
class Rows(_Rows):
|
|
208
220
|
"""Pydal Rows object. Make mypy happy."""
|
|
@@ -418,7 +430,7 @@ type P_Table = TableProtocol
|
|
|
418
430
|
|
|
419
431
|
type QueryLike = Query | _Query | bool
|
|
420
432
|
|
|
421
|
-
type Condition = t.Callable[[
|
|
433
|
+
type Condition = t.Callable[[type["TypedTable"], type["TypedTable"]], QueryLike] | None
|
|
422
434
|
|
|
423
435
|
# An `on` callback can include an alias binding for later join expressions.
|
|
424
436
|
# QueryBuilder ignores table entries when it constructs the actual joins.
|
|
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
|