Merge pull request #42 from freezestudio/patch-1

Update internals.md
This commit is contained in:
Eric Traut 2019-03-31 18:29:48 -07:00 committed by GitHub
commit 5da743b0e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ Pyright attempts to infer the types of global (module-level) variables, class va
Pyright supports type constraints (sometimes called “path constraints”) to track assumptions that apply within certain paths of code flow. For example, consider the following code:
```python
def (a: Optional[Union[str, List[str]]:
def (a: Optional[Union[str, List[str]]) -> None:
if isinstance(a, str):
log(a)
elif a: