Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate committed May 21, 2024
1 parent 628d691 commit 60c554d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pydantic_pkgr/semver.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def parse(cls, version_stdout: SemVerParsableTypes) -> Self | None:
def __str__(self):
return '.'.join(str(chunk) for chunk in self)


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

0 comments on commit 60c554d

Please sign in to comment.