You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Repeated capability accessors return internal _SessionBase type #2019
Repeated capability accessors like Session.channels and Session.instruments return a _SessionBase object. Clients that pass channel objects around may need to refer to this type in PEP 484 type hints.
Activity
bkeryan commentedon Sep 22, 2023
BTW, providing public type aliases for
Channel,Instrument,Pin,Site, etc. would be a relatively easy solution.bkeryan commentedon Sep 22, 2023
Note that
_SessionBaseis innidcpower.sessionand not aliased intonidcpower, so the example code above is incorrect.