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

make qcodes.__version__ lazy #5931

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jenshnielsen
Copy link
Collaborator

This speeds up importing qcodes from an editable install with ~ 0.6-0.7 s assuming that you do not actually make use of the __version__ attribute. The downside is that we do lose some of the static typing of this attribute. See inline comments

@jenshnielsen jenshnielsen requested a review from a team as a code owner April 5, 2024 09:31
@jenshnielsen jenshnielsen marked this pull request as draft April 5, 2024 09:31
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.44%. Comparing base (d522c68) to head (9bd9158).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5931   +/-   ##
=======================================
  Coverage   67.44%   67.44%           
=======================================
  Files         348      348           
  Lines       30120    30120           
=======================================
  Hits        20313    20313           
  Misses       9807     9807           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jenshnielsen jenshnielsen changed the title make qcodes version lazy make qcodes.__version__ lazy Apr 5, 2024
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