Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DelayExstensionVertex typing weirdness #1412

Open
Christian-B opened this issue Nov 10, 2023 · 0 comments
Open

DelayExstensionVertex typing weirdness #1412

Christian-B opened this issue Nov 10, 2023 · 0 comments

Comments

@Christian-B
Copy link
Member

after #1342

class DelayExtensionVertex
@Property
def _delay_splitter(self) -> SplitterDelayVertexSlice:
if TYPE_CHECKING:
return cast(SplitterDelayVertexSlice, self._splitter)
else:
return self._splitter

Issue is that to import a SplitterDelayVertexSlice causes circular imports
the cast call actually does nothing but does please the typer

if TYPE_CHECKING is only true when tryping

keep this hack or find a better solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant