Skip to content

Commit

Permalink
Set __origin__ on runtime generic instance
Browse files Browse the repository at this point in the history
  • Loading branch information
bswck committed Feb 22, 2024
1 parent 466e4a7 commit e3dcd24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime_generics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def __call__(self, *args: Any, **kwargs: Any) -> Any:
origin = self.__origin__
instance: Any = origin.__new__(origin, *args, **kwargs)
instance.__args__ = self.__args__
instance.__origin__ = self.__origin__
instance.__init__(*args, **kwargs)
return instance

Expand Down

0 comments on commit e3dcd24

Please sign in to comment.