An open API service indexing awesome lists of open source software.

https://github.com/patrick91/mypy-lazy-types-example


https://github.com/patrick91/mypy-lazy-types-example

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Example of using Annotated to fetch the actual type at runtime

## Installation

```sh
poetry install
```

## Python

```sh
poetry run python main.py
```

Result (correct):

```

```

## MyPy

```sh
poetry run mypy main.py
```

Output (incorrect, or at least undesired):

```
app/type_b.py:9: error: Name 'app' is not defined
Found 1 error in 1 file (checked 1 source file)
```