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

Python SDK import should be correct order #127

Closed
adriantam opened this issue Jun 9, 2023 · 1 comment
Closed

Python SDK import should be correct order #127

adriantam opened this issue Jun 9, 2023 · 1 comment
Labels
good first issue Good for newcomers python-sdk Affects the Python SDK

Comments

@adriantam
Copy link
Member

adriantam commented Jun 9, 2023

As per openfga/python-sdk#24, the python SDKs client.py library imports library in the wrong order.

As per PEP 8, the import should be in order of

  1. Standard library imports.
  2. Related third party imports.
  3. Local application/library specific imports.

Furthermore, it may be good to have clean up the import so that we only import what is needed (openfga/python-sdk#23).

The file in question is https://github.com/openfga/sdk-generator/blob/main/config/clients/python/template/client/client.mustache

@adriantam
Copy link
Member Author

Close in favour of #126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers python-sdk Affects the Python SDK
Projects
None yet
Development

No branches or pull requests

1 participant