diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f4723c..a3e89d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ exclude: (^src.*$) default_language_version: python: "3.11" repos: - - repo: https://github.com/psf/black - rev: "24.10.0" + - repo: https://github.com/psf/black-pre-commit-mirror + rev: "25.9.0" hooks: - id: black diff --git a/tests/ingest_stringify_test.py b/tests/ingest_stringify_test.py index ef58dab..f525c21 100644 --- a/tests/ingest_stringify_test.py +++ b/tests/ingest_stringify_test.py @@ -236,12 +236,10 @@ def test_interface(): "Document", bases=["Blob"], children=[ - ( - GMethod( - "createElement", - arguments=[GArg("localName", "DOMString")], - returns="FooElement", - ) + GMethod( + "createElement", + arguments=[GArg("localName", "DOMString")], + returns="FooElement", ) ], ) @@ -252,7 +250,7 @@ def test_complete_interface(): _verify_root_stmt( "interface Doc : Blob { attribute Blob baz; } ", "class Doc(Blob):\n baz: Blob", - GClass("Doc", bases=["Blob"], children=[(GAttribute("baz", "Blob"))]), + GClass("Doc", bases=["Blob"], children=[GAttribute("baz", "Blob")]), ) @@ -262,7 +260,7 @@ def test_namespace(): "class ConsoleNamespace:\n def log(self, *data: Any): ...", GClass( "console", - children=[(GMethod("log", [GArgVariadic("data", "any")]))], + children=[GMethod("log", [GArgVariadic("data", "any")])], is_namespace=True, ), )