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

Reduce size of cmds/__init__.pyi #25

Open
Muream opened this issue Aug 15, 2024 · 0 comments · May be fixed by #29
Open

Reduce size of cmds/__init__.pyi #25

Muream opened this issue Aug 15, 2024 · 0 comments · May be fixed by #29

Comments

@Muream
Copy link
Owner

Muream commented Aug 15, 2024

This file is very large (currently over 100k lines) and is over the limit of what Pycharm can load by default.
Users that have bumped up that limit (as recommended in the readme) have noticed some performance loss in pycharm.

I also suspect it being the cause of Pylance crashing in vscode

There's currently two ways I can think of reducing that file size:

  1. Strip the docstrings and make each function definition just take one line - This reduces the line count from 100k+ to ~1000 but we lose valuable information
  2. Split that file into multiple subfiles - The only drawback is that it would make editors think that things like this is valid: from maya.cmds.createNode import createNode when it really isn't
    • One file per command?
    • One file per letter of the alphabet?
@Muream Muream linked a pull request Sep 15, 2024 that will close this issue
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 a pull request may close this issue.

1 participant