Support for classes that define `__new__` for `mock_constructor`
Ouverte
enhancement
help wanted
mock_constructor
- Langage dominant
- Python
- Étoiles
- 149
- Forks
- 62
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
It currently has no support for classes with `__new__`, and will reject patching those.
IIRC, it was tough getting around Python idiosyncrasies to make `mock_constructor` work, and I willingly decided not to implement `__new__` at first to simplify things, but this is potentially doable.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.