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:
Jerens Lensun 2025-09-02 20:47:38 +08:00 committed by GitHub
parent f8c0746c44
commit 4de84b0ca5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 174 additions and 132 deletions

View file

@ -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():