mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-05 06:34:15 +08:00
Replace object | None with object (#9857)
All types, including `None`, are a subtype of `object`, so `None` is redundant in the union `object | None`.
This commit is contained in:
@@ -20,7 +20,7 @@ class ConsoleMenu:
|
||||
exit_item: ExitItem
|
||||
current_option: int
|
||||
selected_option: int
|
||||
returned_value: object | None
|
||||
returned_value: object
|
||||
should_exit: bool
|
||||
previous_active_menu: ConsoleMenu | None
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user