Closed SimonHeybrock closed 7 months ago
We should probably change https://github.com/scipp/sciline/blob/5a8bdd95d10c593f9cd6dabca7ee425abdc971ee/src/sciline/pipeline.py#L358 to Optional[Dict[Any, Any]]
maybe with a comment about the weird behaviour of what is a type vs type hint?
I am thinking now that we should remove the object
hints, and disable mypy warnings on a case-by-case basis where Optional
is used. It seems either we need a fundamentally new idea how to handle Optional
, or just avoid it entirely?
While
Pipeline
will be re-implemented, I nevertheless made this change, since it allows for updating units tests with new expected behavior, which will make the re-implementation easier/smaller (will pass the same unit tests), decoupling the behavior change from the re-implementation.