Skip to content

Commit d0208fc

Browse files
authored
Merge pull request #23 from iloveitaly/claude/implement-issue-18-011CV4TPo7EPfZctAHWErBLf
feat: make TypeID repr output executable by adding .from_string()
2 parents 1ab013e + d132255 commit d0208fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

typeid/typeid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __str__(self) -> str:
4848
return value
4949

5050
def __repr__(self):
51-
return "%s(%r)" % (self.__class__.__name__, str(self))
51+
return "%s.from_string(%r)" % (self.__class__.__name__, str(self))
5252

5353
def __eq__(self, value: object) -> bool:
5454
if not isinstance(value, TypeID):

0 commit comments

Comments
 (0)