mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision e3cf1284464a4a3e46fd15e4138f8e32c6cecdd8
This commit is contained in:
parent
b20333a324
commit
c5c325d8bb
57 changed files with 1422 additions and 493 deletions
|
@ -6,7 +6,7 @@ import zipfile
|
|||
from io import BytesIO
|
||||
|
||||
try:
|
||||
from typing import Any
|
||||
from typing import Any, Callable
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
@ -17,10 +17,11 @@ class Kwargs(dict):
|
|||
def set_if_none(self,
|
||||
name, # type: str
|
||||
value, # type: Any
|
||||
err_fn=None, # type: (Kwargs, str) -> Any
|
||||
err_fn=None, # type: Callable[[Kwargs, str], Any]
|
||||
desc=None, # type: str
|
||||
extra_cond=None # type: (Kwargs) -> bool
|
||||
extra_cond=None # type: Callable[[Kwargs], Any]
|
||||
):
|
||||
# type: (...) -> Any
|
||||
if desc is None:
|
||||
desc = name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue