uplid 1.1.0__tar.gz → 1.1.1__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.
- {uplid-1.1.0 → uplid-1.1.1}/PKG-INFO +1 -1
- {uplid-1.1.0 → uplid-1.1.1}/pyproject.toml +1 -1
- {uplid-1.1.0 → uplid-1.1.1}/src/uplid/uplid.py +4 -5
- {uplid-1.1.0 → uplid-1.1.1}/README.md +0 -0
- {uplid-1.1.0 → uplid-1.1.1}/src/uplid/__init__.py +0 -0
- {uplid-1.1.0 → uplid-1.1.1}/src/uplid/py.typed +0 -0
- {uplid-1.1.0 → uplid-1.1.1}/src/uplid/sqlalchemy.py +0 -0
|
@@ -7,7 +7,6 @@ from datetime import UTC
|
|
|
7
7
|
from datetime import datetime as dt_datetime
|
|
8
8
|
from typing import (
|
|
9
9
|
TYPE_CHECKING,
|
|
10
|
-
Any,
|
|
11
10
|
LiteralString,
|
|
12
11
|
Protocol,
|
|
13
12
|
Self,
|
|
@@ -263,7 +262,7 @@ class UPLID[PREFIX: LiteralString]:
|
|
|
263
262
|
"""Return self (UPLIDs are immutable)."""
|
|
264
263
|
return self
|
|
265
264
|
|
|
266
|
-
def __deepcopy__(self, memo:
|
|
265
|
+
def __deepcopy__(self, memo: object) -> Self:
|
|
267
266
|
"""Return self (UPLIDs are immutable)."""
|
|
268
267
|
return self
|
|
269
268
|
|
|
@@ -351,8 +350,8 @@ class UPLID[PREFIX: LiteralString]:
|
|
|
351
350
|
@classmethod
|
|
352
351
|
def __get_pydantic_core_schema__(
|
|
353
352
|
cls,
|
|
354
|
-
source_type:
|
|
355
|
-
handler:
|
|
353
|
+
source_type: type[Self],
|
|
354
|
+
handler: object,
|
|
356
355
|
) -> CoreSchema:
|
|
357
356
|
"""Pydantic integration for validation and serialization.
|
|
358
357
|
|
|
@@ -383,7 +382,7 @@ class UPLID[PREFIX: LiteralString]:
|
|
|
383
382
|
|
|
384
383
|
prefix_str: str = prefix_args[0]
|
|
385
384
|
|
|
386
|
-
def validate(v:
|
|
385
|
+
def validate(v: UPLIDType | str) -> UPLIDType:
|
|
387
386
|
if isinstance(v, str):
|
|
388
387
|
return cls.from_string(v, prefix_str)
|
|
389
388
|
if isinstance(v, UPLID):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|