mirror of
https://github.com/microsoft/pyright.git
synced 2024-08-17 03:40:44 +03:00
Fix typo in import (#1476)
This commit is contained in:
parent
9b50b9db9e
commit
2e1b01f866
@ -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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user