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

Small typing annotation fixes #727

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joshdick
Copy link

@joshdick joshdick commented May 6, 2024

Small fixes for the typing annotations added in #660.

It looks like the above PR included the string literal 'SFType' in a union type to work around a circular use-before-define issue between the SFType and Salesforce classes that reference each other and are both defined in api.py, but I ran into issues with the typing defined that way (SFType methods were not seen as valid when accessing salesforce.Account.get(), etc.)

It seems like the proper way to fix that issue postponed evaluation of type annotations, which I've included in this PR, but it does have possible implications for backwards compatibility.

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.

None yet

1 participant