Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbourjau/protocol-playground
https://github.com/cbourjau/protocol-playground
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cbourjau/protocol-playground
- Owner: cbourjau
- Created: 2024-03-13T11:36:43.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-13T11:43:31.000Z (10 months ago)
- Last Synced: 2024-12-01T08:54:09.527Z (25 days ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playground to evaluate mypy's capabilities
```
micromamba env create -f environment.yml
micromamba activate protocol-playground
mypy foo.py
```yields:
```
foo.py:36: error: Item "protocol.mod2.DataFrame" of "protocol.mod1.DataFrame | protocol.mod2.DataFrame" has no attribute "only_foo" [union-attr]
foo.py:39: error: Incompatible types in assignment (expression has type "int | str", variable has type "int") [assignment]
foo.py:42: error: Too many arguments for "different_arity" [call-arg]
foo.py:45: error: Too many positional arguments for "different_kw_only" [misc]
foo.py:50: error: Incompatible types in assignment (expression has type "protocol.mod1.DataFrame | protocol.mod2.DataFrame", variable has type "protocol.mod1.DataFrame") [assignment]
foo.py:54: error: Incompatible return value type (got "protocol.mod1.DataFrame", expected "protocol.mod2.DataFrame") [return-value]
Found 6 errors in 1 file (checked 1 source file)
```