Skip to content

[pre-commit.ci] pre-commit autoupdate #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ default_language_version:
python: "3.11"
repos:
- repo: https://github.com/psf/black
rev: "24.10.0"
rev: "25.1.0"
hooks:
- id: black
14 changes: 6 additions & 8 deletions tests/ingest_stringify_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
],
)
Expand All @@ -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")]),
)


Expand All @@ -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,
),
)
Expand Down