You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add __override__ attribute to @OverRide (PEP 698) (#86)
Add `__override__` attribute to @OverRide
As per discussion in
https://mail.python.org/archives/list/[email protected]/thread/TOIYZ3SNPBJZDBRU3ZSBREXV2NNHF4KW/,
we believe this is a good feature to have (as best-effort: it will not
work in all cases if the user does not understand decorator implementations
enough to get the right order, and it will alwasys fail if a decorator
output does not support dynamic attributes).
We decided to support this for two reasons:
- it was a direct request from the `overrides` library owner
- `typing_extensions.final` has similar behavior
Tests:
```
cd src
python -m unittest test_typing_extensions.py
```
Lints:
```
flake8
flake8 --config=.flake8-tests src/test_typing_extensions.py
```
0 commit comments