-
Notifications
You must be signed in to change notification settings - Fork 49
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
Fix retrieving the root registry key #351
Conversation
Codecov Report
@@ Coverage Diff @@
## main #351 +/- ##
==========================================
+ Coverage 70.29% 70.40% +0.11%
==========================================
Files 233 233
Lines 17944 17944
==========================================
+ Hits 12613 12633 +20
+ Misses 5331 5311 -20
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -204,7 +204,7 @@ def root(self) -> KeyCollection: | |||
|
|||
@internal | |||
@lru_cache(4096) | |||
def key(self, key: Optional[str] = None) -> KeyCollection: | |||
def key(self, key: str = "") -> KeyCollection: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a regression test for this please?
@@ -204,7 +204,7 @@ def root(self) -> KeyCollection: | |||
|
|||
@internal | |||
@lru_cache(4096) | |||
def key(self, key: Optional[str] = None) -> KeyCollection: | |||
def key(self, key: str = "") -> KeyCollection: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use key: Optional[str] = None
and use key = key or ""
as the first line of the method?
04f7af0
to
1627798
Compare
LGTM |
Fixes #350