mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
Remove Optional annotation
The is inconsistent with the type annotation of `TestPass.duration_ms`. The function is only called with `duration_ms` as an int, so there is no need to declare it `Optional`.
This commit is contained in:
committed by
David Adam
parent
425d487de9
commit
7b8efe3105
@@ -268,7 +268,7 @@ class TestPass:
|
||||
arg: str
|
||||
duration_ms: int
|
||||
|
||||
def __init__(self, arg: str, duration_ms: Optional[int]):
|
||||
def __init__(self, arg: str, duration_ms: int):
|
||||
self.arg = arg
|
||||
self.duration_ms = duration_ms
|
||||
|
||||
|
||||
Reference in New Issue
Block a user