Created
July 17, 2020 20:45
-
-
Save ahal/670b149525bff0b6658c1a1a3cbb264c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Callable, Type | |
def register() -> Callable: | |
def wrap(cls: Type) -> Type : | |
return cls | |
return wrap | |
@register | |
class Foo(): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment