Browse Source

Add an undocumented mypyc_attr decorator (#12)

This is an (for-now) undocumented annotation to allow specifying
various hints to mypyc. `trait` could have used this instead of
being its own thing.
pull/13/head
Michael J. Sullivan 3 years ago committed by GitHub
parent
commit
1cd4b86d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mypy_extensions.py

4
mypy_extensions.py

@ -144,6 +144,10 @@ def trait(cls):
return cls
def mypyc_attr(*attrs, **kwattrs):
return lambda x: x
# TODO: We may want to try to properly apply this to any type
# variables left over...
class _FlexibleAliasClsApplied:

Loading…
Cancel
Save