Skip to content

Speedup: move typing imports into type-checking block#94

Merged
hugovk merged 1 commit intotermcolor:mainfrom
hugovk:TYPE_CHECKING
Feb 28, 2025
Merged

Speedup: move typing imports into type-checking block#94
hugovk merged 1 commit intotermcolor:mainfrom
hugovk:TYPE_CHECKING

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Feb 28, 2025

Speeds up imports when not running mypy.

Before

image

After

image

@hugovk hugovk added the changelog: Changed For changes in existing functionality label Feb 28, 2025
@codecov
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.77%. Comparing base (fe50c9a) to head (637b3bf).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
- Coverage   97.91%   97.77%   -0.14%     
==========================================
  Files           4        3       -1     
  Lines         144      135       -9     
==========================================
- Hits          141      132       -9     
  Misses          3        3              
Flag Coverage Δ
macos-latest 97.77% <100.00%> (-0.14%) ⬇️
ubuntu-latest 97.77% <100.00%> (-0.14%) ⬇️
windows-latest 97.77% <100.00%> (-0.14%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@hugovk hugovk merged commit a5799f8 into termcolor:main Feb 28, 2025
30 of 31 checks passed
@hugovk hugovk deleted the TYPE_CHECKING branch February 28, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: Changed For changes in existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant