• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pyiron / pyiron_workflow / 12858067475

18 Jan 2025 02:48AM UTC coverage: 91.387% (-0.09%) from 91.48%
12858067475

push

github

web-flow
`mypy` compliance (#533)

* Use typing.Callable instead of callable

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Ignore erroneous error

typing._UnionGenericAlias definitively _does_ exist.

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Hint a tuple, don't return one

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Hint typing.Callable instead of callable

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Expose the Self typing tool for all versions

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Add a mypy job

Based on @jan-janssen's jobs for other pyiron repos

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* `mypy` channels (#534)

* Leverage generics for connection partners

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Break apart connection error message

So we only reference type hints when they're there

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Hint connections type more specifically

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Hint disconnect more specifically

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Use Self in disconnection hints

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Use Self to hint value_receiver

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Devolve responsibility for connection validity

Otherwise mypy has trouble telling that data channels really are operating on a connection partner, since the `super()` call could wind up pointing anywhere.

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Fix typing in channel tests

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* :bug: Return the message

Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>

* Fix typing in figuring out who is I/O

Signed-off-by: liamhuber <liam... (continued)

3130 of 3425 relevant lines covered (91.39%)

0.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.97
/executors/cloudpickleprocesspool.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc