Skip to content

Commit 4d81041

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 7e0fa69 commit 4d81041

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

stubs/cffi/_cffi_backend.pyi

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CField:
3131
bitsize: int
3232
flags: int
3333
offset: int
34-
type: 'CType'
34+
type: CType
3535

3636
@final
3737
class CLibrary:
@@ -43,14 +43,14 @@ class CLibrary:
4343
@final
4444
class CType:
4545
cname: str
46-
kind: Literal['enum', 'primitive', 'pointer', 'array', 'void', 'struct', 'union', 'function']
46+
kind: Literal["enum", "primitive", "pointer", "array", "void", "struct", "union", "function"]
4747

4848
abi: int
49-
args: tuple['CType', ...]
49+
args: tuple[CType, ...]
5050
ellipsis: bool
51-
result: 'CType'
51+
result: CType
5252

53-
item: 'CType'
53+
item: CType
5454
length: int | None
5555

5656
fields: list[tuple[str, CField]] | None
@@ -66,32 +66,26 @@ class Lib:
6666
class _CDataBase:
6767
__name__: ClassVar[str]
6868
def __dir__(self): ...
69-
7069
def __enter__(self) -> Self: ...
7170
def __exit__(
7271
self, type: type[BaseException] | None, value: BaseException | None, traceback: types.TracebackType | None, /
7372
): ...
74-
7573
def __add__(self, other, /): ...
7674
def __sub__(self, other, /): ...
7775
def __radd__(self, other, /): ...
7876
def __rsub__(self, other, /): ...
79-
8077
def __call__(self, *args): ...
81-
8278
def __hash__(self) -> int: ...
8379
def __bool__(self) -> bool: ...
8480
def __int__(self) -> int: ...
8581
def __float__(self) -> float: ...
8682
def __complex__(self) -> complex: ...
87-
8883
def __eq__(self, other, /): ...
8984
def __ne__(self, other, /): ...
9085
def __ge__(self, other, /): ...
9186
def __gt__(self, other, /): ...
9287
def __le__(self, other, /): ...
9388
def __lt__(self, other, /): ...
94-
9589
def __iter__(self): ...
9690
def __len__(self) -> int: ...
9791
def __getitem__(self, index: SupportsIndex | slice, /): ...

0 commit comments

Comments
 (0)