Adjust type hints in update entity (#129387)
* Adjust type hints in update entity * Update allowed return type of update_percentage --------- Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
@@ -2568,7 +2568,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="in_progress",
|
||||
return_type=["bool", "int", None],
|
||||
return_type=["bool", None],
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="latest_version",
|
||||
@@ -2590,6 +2590,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
||||
function_name="title",
|
||||
return_type=["str", None],
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="update_percentage",
|
||||
return_type=["int", "float", None],
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="install",
|
||||
arg_types={1: "str | None", 2: "bool"},
|
||||
|
||||
Reference in New Issue
Block a user