DataDog / riot

A Python virtual env builder and command runner
https://ddriot.readthedocs.io/
Apache License 2.0
23 stars 15 forks source link

refactor: make Venv a simple class #178

Closed P403n1x87 closed 1 year ago

P403n1x87 commented 2 years ago

The release 0.960 of mypy has highlighted a misuse of InitVar. This change fixes it by removing the dataclass decorator from Venv and adding the required boilerplate code for the __init__ method. The different __repr__ method that follows from this refactor has caused the short hashes to change and the tests had to be adjusted accordingly.