-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] fix some mypy warns about types #16551
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
b8d33fb
aad7ba0
ad62f0a
6c29b4a
628a154
82e0153
17155c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -112,7 +112,7 @@ def is_resident_credential(self) -> bool: | |||
| return self._is_resident_credential | ||||
|
|
||||
| @property | ||||
| def rp_id(self) -> str: | ||||
| def rp_id(self) -> Optional[str]: | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. _rp_id can be None if rp_id is not in the dictionary and is assigned the default value None.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
why not Optional[str] , isn't it equal to str | None ? |
||||
| return self._rp_id | ||||
|
|
||||
| @property | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.