kracekumar / python-typing-koans

Python typing koans to learn type-hints in Python3 using Mypy
119 stars 10 forks source link

Supplement requirements.txt #16

Closed dsardelic closed 2 years ago

dsardelic commented 2 years ago

Being a 'pipenv' rather than 'poetry' guy, I tried to set up a new virtual environment using pipenv 2021.5.29, python 3.9 and requirements.txt. However, after running

$ pipenv run python cli.py one koans/py/100-easy-variable-wrong-type.py

I got an error:

mypy.ini:10: error: Error importing plugin 'mypy_django_plugin.main': No module named 'mypy_django_plugin'

It seems the requirements.txt is incomplete. This version I am submitting was exported from the virtual environment created using latest poetry. It contains all packages required for the virtual environment, and it now works with pipenv as well.

kracekumar commented 2 years ago

Thanks, @dsardelic for the PR.