Skip to content

Type the return type of connect{Async}#215

Open
jchaffraix wants to merge 1 commit into
ib-api-reloaded:nextfrom
jchaffraix:julien_type_connect_return
Open

Type the return type of connect{Async}#215
jchaffraix wants to merge 1 commit into
ib-api-reloaded:nextfrom
jchaffraix:julien_type_connect_return

Conversation

@jchaffraix
Copy link
Copy Markdown

The type was omitted which causes issues downstream if the typechecker is set in strict mode.

Since the return type references the class being
created, we need to use forward references:
https://peps.python.org/pep-0484/#forward-references

The type was omitted which causes issues downstream
if the typechecker is set in strict mode.

Since the return type references the class being
created, we need to use forward references:
https://peps.python.org/pep-0484/#forward-references
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

Successfully merging this pull request may close these issues.

1 participant