Skip to content

Commit

Permalink
Reformat according to black 24 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy authored Mar 10, 2024
1 parent d5a3644 commit a33dca2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
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

0 comments on commit a33dca2

Please sign in to comment.