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

ellipsis: ensure shutil.get_terminal_size called only during Yaspin instantiation #241

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

pavdmyt
Copy link
Owner

@pavdmyt pavdmyt commented Sep 16, 2024

It is possible to cache this value to avoid unnecessary calls while rendering each frame. Changing terminal size while yaspin is running is an unlikely (hopefully 😅 ) situation.

…nstantiation

It is possible to cache this value to avoid unnecessary calls while rendering each frame.
Changing terminal size while yaspin is running is an unlikely (hopefully) situation.
@pavdmyt pavdmyt self-assigned this Sep 16, 2024
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.88%. Comparing base (b1996af) to head (8b5424b).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #241   +/-   ##
=======================================
  Coverage   94.88%   94.88%           
=======================================
  Files           5        5           
  Lines         391      391           
=======================================
  Hits          371      371           
  Misses         20       20           

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

@pavdmyt pavdmyt merged commit 9af4817 into master Sep 16, 2024
10 checks passed
@pavdmyt pavdmyt deleted the cache-terminal-size branch September 16, 2024 18:44
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.

2 participants