mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
script_bindings(python): Fix all the rest of type annotation in script_bindings codegen (#39070)
This will complete the type annotation on `codegen.py` so we can safely remove the ignore from `pyproject` configurataion --------- Signed-off-by: Jerens Lensun <jerensslensun@gmail.com> Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
f8c0746c44
commit
4de84b0ca5
3 changed files with 174 additions and 132 deletions
|
@ -111,7 +111,7 @@ class Configuration:
|
|||
def getInterface(self, ifname: str) -> IDLInterfaceOrNamespace:
|
||||
return self.interfaces[ifname]
|
||||
|
||||
def getDescriptors(self, **filters: IDLInterfaceOrNamespace) -> list[Descriptor]:
|
||||
def getDescriptors(self, **filters: Any) -> list[Descriptor]:
|
||||
"""Gets the descriptors that match the given filters."""
|
||||
curr = self.descriptors
|
||||
for key, val in filters.items():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue