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:
Károly Szabó
2023-03-08 21:59:47 +02:00
committed by GitHub
parent 133b9a04cf
commit 604d39c583
2 changed files with 2 additions and 2 deletions

View File

@@ -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__(