Fix typo in import (#1476)

This commit is contained in:
Richard Höchenberger 2021-02-12 16:03:58 +01:00 committed by GitHub
parent 9b50b9db9e
commit 2e1b01f866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ A few common situations that need to be cleaned up:
3. Decorator functions are especially problematic for static type analyzers. Unless properly typed, they completely hide the signature of any class or function they are applied to. For this reason, it is highly recommended that you enable the “reportUntypedFunctionDecorator” and “reportUntypedClassDecorator” switches in pyrightconfig.json. Most decorators simply return the same function they are passed. Those can easily be annotated with a TypeVar like this:
```python
from typings import Any, Callable, TypeVar
from typing import Any, Callable, TypeVar
_FuncT = TypeVar('_FuncT', bound=Callable[..., Any])