Skip to content
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

Reformat according to black 24 #51

Merged
merged 1 commit into from
Mar 10, 2024
Merged
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
6 changes: 2 additions & 4 deletions src/binding_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ def __init__(
typedef: str,
ignore_fields: Optional[Set[str]] = ...,
rename_fields: Optional[Dict[str, str]] = ...,
):
...
): ...

@overload
def __init__(
Expand All @@ -66,8 +65,7 @@ def __init__(
struct: str,
ignore_fields: Optional[Set[str]] = ...,
rename_fields: Optional[Dict[str, str]] = ...,
):
...
): ...

def __init__(
self,
Expand Down
6 changes: 2 additions & 4 deletions src/binding_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ class MacroEnum:
defines: OrderedDict[str, str]

@overload
def __init__(self, header: Header, *defines: str):
...
def __init__(self, header: Header, *defines: str): ...

@overload
def __init__(self, header: Header, *, prefix: str):
...
def __init__(self, header: Header, *, prefix: str): ...

def __init__(
self,
Expand Down
6 changes: 2 additions & 4 deletions src/binding_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def __init__(
*,
default_args: Optional[Dict[str, str]] = ...,
typemaps: Optional[List[Typemap]] = ...,
):
...
): ...

@overload
def __init__(
Expand All @@ -39,8 +38,7 @@ def __init__(
cfunc: "CFunc",
default_args: Optional[Dict[str, str]] = ...,
typemaps: Optional[List[Typemap]] = ...,
):
...
): ...

def __init__(
self,
Expand Down
1 change: 1 addition & 0 deletions src/binding_generic_specializations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
SPDX-FileCopyrightText: 2022 wingdeans <[email protected]>
SPDX-License-Identifier: LGPL-3.0-only
"""

from typing import List, Dict, TYPE_CHECKING

from clang.cindex import Cursor, CursorKind
Expand Down
1 change: 1 addition & 0 deletions src/clang/cindex.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class Type:
class SourceLocation:
class File:
name: str

file: File
line: int
column: int
Expand Down
1 change: 1 addition & 0 deletions src/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
by defining the RZ_BINDINGS preprocessor flag, which sets the annotations to expand to
__attribute__((annotate)), which can be picked up by libclang.
"""

from typing import List, Dict, Set, TypedDict, Optional, cast

import os
Expand Down
Loading