Skip to content

Commit e91cf74

Browse files
[autofix.ci] apply automated fixes
1 parent 67747d8 commit e91cf74

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

api/python/slint/tests/codegen/examples/counter/counter.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright © SixtyFPS GmbH <[email protected]>
2+
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3+
14
# Generated by slint.codegen from counter.slint
25
from __future__ import annotations
36

@@ -10,11 +13,12 @@
1013

1114
import slint
1215

13-
__all__ = ['CounterWindow']
16+
__all__ = ["CounterWindow"]
1417

1518
_MODULE_DIR = Path(__file__).parent
1619

17-
_SLINT_RESOURCE = 'counter.slint'
20+
_SLINT_RESOURCE = "counter.slint"
21+
1822

1923
def _load() -> types.SimpleNamespace:
2024
"""Load the compiled Slint module for this package."""
@@ -35,6 +39,7 @@ def _load() -> types.SimpleNamespace:
3539
translation_domain=None,
3640
)
3741

42+
3843
_module = _load()
3944

4045
CounterWindow = _module.CounterWindow

api/python/slint/tests/codegen/examples/counter/counter.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright © SixtyFPS GmbH <[email protected]>
2+
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3+
14
from __future__ import annotations
25

36
import enum
@@ -6,11 +9,9 @@ from typing import Any, Callable
69

710
import slint
811

9-
__all__ = ['CounterWindow']
12+
__all__ = ["CounterWindow"]
1013

1114
class CounterWindow(slint.Component):
12-
def __init__(self, **kwargs: Any) -> None:
13-
...
15+
def __init__(self, **kwargs: Any) -> None: ...
1416
counter: int
1517
request_increase: Callable[[], None]
16-

api/python/slint/tests/codegen/examples/counter/generated/counter.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright © SixtyFPS GmbH <[email protected]>
2+
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3+
14
# Generated by slint.codegen from counter.slint
25
from __future__ import annotations
36

@@ -10,11 +13,12 @@
1013

1114
import slint
1215

13-
__all__ = ['CounterWindow']
16+
__all__ = ["CounterWindow"]
1417

1518
_MODULE_DIR = Path(__file__).parent
1619

17-
_SLINT_RESOURCE = 'counter.slint'
20+
_SLINT_RESOURCE = "counter.slint"
21+
1822

1923
def _load() -> types.SimpleNamespace:
2024
"""Load the compiled Slint module for this package."""
@@ -35,6 +39,7 @@ def _load() -> types.SimpleNamespace:
3539
translation_domain=None,
3640
)
3741

42+
3843
_module = _load()
3944

4045
CounterWindow = _module.CounterWindow

api/python/slint/tests/codegen/examples/counter/generated/counter.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright © SixtyFPS GmbH <[email protected]>
2+
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3+
14
from __future__ import annotations
25

36
import enum
@@ -6,11 +9,9 @@ from typing import Any, Callable
69

710
import slint
811

9-
__all__ = ['CounterWindow']
12+
__all__ = ["CounterWindow"]
1013

1114
class CounterWindow(slint.Component):
12-
def __init__(self, **kwargs: Any) -> None:
13-
...
15+
def __init__(self, **kwargs: Any) -> None: ...
1416
counter: int
1517
request_increase: Callable[[], None]
16-

api/python/slint/tests/codegen/examples/counter/generated/counter.slint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright © SixtyFPS GmbH <[email protected]>
2+
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3+
14
export component CounterWindow inherits Window {
25
width: 240px;
36
height: 120px;

0 commit comments

Comments
 (0)