Skip to content

Add types to core._thread_cache#2741

Merged
TeamSpen210 merged 7 commits intopython-trio:masterfrom
TeamSpen210:type_thread_cache
Aug 8, 2023
Merged

Add types to core._thread_cache#2741
TeamSpen210 merged 7 commits intopython-trio:masterfrom
TeamSpen210:type_thread_cache

Conversation

@TeamSpen210
Copy link
Contributor

Adds types to this module.

@TeamSpen210 TeamSpen210 added the typing Adding static types to trio's interface label Aug 6, 2023
@codecov
Copy link

codecov bot commented Aug 6, 2023

Codecov Report

Merging #2741 (055728c) into master (c8aefc6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2741   +/-   ##
=======================================
  Coverage   98.90%   98.90%           
=======================================
  Files         113      113           
  Lines       16685    16687    +2     
  Branches     3025     3025           
=======================================
+ Hits        16503    16505    +2     
  Misses        125      125           
  Partials       57       57           
Files Changed Coverage Δ
trio/_core/_thread_cache.py 100.00% <100.00%> (ø)

@TeamSpen210
Copy link
Contributor Author

This needs outcome stubs to fully pass type checking.

Copy link
Contributor

@A5rocks A5rocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, minor comment.

(the Optional[T] to T | None took a bit of time to parse xdd)

@TeamSpen210 TeamSpen210 changed the title Add types to core._thread cache Add types to core._thread_cache Aug 6, 2023
Copy link
Contributor

@A5rocks A5rocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think this is good, feel free to merge!

@TeamSpen210 TeamSpen210 merged commit b3ef661 into python-trio:master Aug 8, 2023
@TeamSpen210 TeamSpen210 deleted the type_thread_cache branch August 8, 2023 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typing Adding static types to trio's interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants