mirror of
https://github.com/microsoft/pyright.git
synced 2024-08-17 03:40:44 +03:00
Fixed small bug in documentation.
This commit is contained in:
parent
85a3eaf63c
commit
ec87aaea63
@ -48,7 +48,7 @@ Pyright supports type constraints (sometimes called “path constraints”) to t
|
||||
def (a: Optional[Union[str, List[str]]):
|
||||
if isinstance(a, str):
|
||||
log(a)
|
||||
elif a:
|
||||
elif isinstance(a, list):
|
||||
log(msg) for msg in a
|
||||
else:
|
||||
log(a)
|
||||
|
Loading…
Reference in New Issue
Block a user