Skip to content

Commit 60c554d

Browse files
committed
comments
1 parent 628d691 commit 60c554d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pydantic_pkgr/semver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ def parse(cls, version_stdout: SemVerParsableTypes) -> Self | None:
119119
def __str__(self):
120120
return '.'.join(str(chunk) for chunk in self)
121121

122+
123+
# Not needed as long as we dont stray any further from a basic NamedTuple
124+
# if we start overloading more methods or it becomes a fully custom type, then we probably need this:
122125
# @classmethod
123126
# def __get_pydantic_core_schema__(cls, source: Type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
124127
# default_schema = handler(source)

0 commit comments

Comments
 (0)