Skip to content

Commit 42d12d7

Browse files
committed
chore: fix mypy error
1 parent f13b26d commit 42d12d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def server_response_error_factory(code: str, summary: str, detail: str) -> str:
3333
return ET.tostring(root, encoding="utf-8").decode("utf-8")
3434

3535

36-
def server_response_factory(tag: str, **attributes: str | bool | int | None) -> bytes:
36+
def server_response_factory(tag: str, **attributes: str) -> bytes:
3737
ns = "http://tableau.com/api"
3838
ET.register_namespace("", ns)
3939
root = ET.Element(
@@ -42,7 +42,7 @@ def server_response_factory(tag: str, **attributes: str | bool | int | None) ->
4242
if attributes is None:
4343
attributes = {}
4444

45-
elem = ET.SubElement(root, f"{{{ns}}}{tag}", **attributes)
45+
elem = ET.SubElement(root, f"{{{ns}}}{tag}", attrib=attributes)
4646
return ET.tostring(root, encoding="utf-8")
4747

4848

0 commit comments

Comments
 (0)