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

QGS102 Use 'import qgis.3d' instead of 'import qgis._3d' #15

Open
jakimowb opened this issue Dec 11, 2024 · 0 comments
Open

QGS102 Use 'import qgis.3d' instead of 'import qgis._3d' #15

jakimowb opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jakimowb
Copy link
Contributor

Describe the bug

As in #11, an exception is needed that allows to import the qgis._3d module - as there is no other way to import this module in python.

To Reproduce

  1. Create an example.py with:
import qgis._3d

print(qgis._3d)
  1. run flake8 example.py. The output is
example.py:1:1: QGS102 Use 'import qgis.3d' instead of 'import qgis._3d'

However, as python does not allow module names beginning with a number character, there is no other way to import it like that.

Expected behavior

Absolute and relative imports from qgis._3d should be allowed by default.

@jakimowb jakimowb added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant