Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In 56c7480 I already added an abstract base class for the parameter type. But in 1bd0c31 this class was removed again. There was a discussion in #11 if it makes sense to have an empty class. Nowadays we can assume that it *does* make sense to do so: - after the introduction of 'MutwoObject' all parameters should inherit from this: by using a common parent class this necessity can be simplified and be more reliable - for type hints, in case we really do only accept mutwo parameters (and not any object as it's often ok too), we can use the 'abc.Parameter' class. In mutwo.core < 2.0.0 we used to have 'core_constants.ParameterType', but this rather made the situation more complicated. By simply using either 'typing.Any' or 'abc.Parameter' it's clear what is expected
- Loading branch information