Skip to content

Commit 0ac1106

Browse files
committed
Use 'Unused' instead of stub allowlist
1 parent a6de071 commit 0ac1106

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

stubs/pycups/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

stubs/pycups/cups.pyi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from _typeshed import Unused
12
from collections.abc import Callable, Sequence
23
from io import IOBase
34
from typing import Final, Literal, TypeAlias, TypedDict, TypeVar, final, overload, type_check_only
@@ -601,7 +602,7 @@ class Attribute:
601602
def text(self) -> str: ...
602603
@property
603604
def value(self) -> str: ...
604-
def __init__(self) -> None: ...
605+
def __init__(self, *args: Unused) -> None: ...
605606

606607
@final
607608
class Connection:
@@ -757,7 +758,7 @@ class Constraint:
757758
def option1(self) -> str: ...
758759
@property
759760
def option2(self) -> str: ...
760-
def __init__(self) -> None: ...
761+
def __init__(self, *args: Unused) -> None: ...
761762

762763
@final
763764
class Dest:
@@ -769,7 +770,7 @@ class Dest:
769770
def name(self) -> str: ...
770771
@property
771772
def options(self) -> dict[str, str]: ...
772-
def __init__(self) -> None: ...
773+
def __init__(self, *args: Unused) -> None: ...
773774

774775
@final
775776
class Group:
@@ -781,7 +782,7 @@ class Group:
781782
def subgroups(self) -> list[Group]: ...
782783
@property
783784
def text(self) -> str: ...
784-
def __init__(self) -> None: ...
785+
def __init__(self, *args: Unused) -> None: ...
785786

786787
class HTTPError(Exception): ...
787788

@@ -836,7 +837,7 @@ class Option:
836837
def text(self) -> str: ...
837838
@property
838839
def ui(self) -> int: ...
839-
def __init__(self) -> None: ...
840+
def __init__(self, *args: Unused) -> None: ...
840841

841842
@final
842843
class PPD:

0 commit comments

Comments
 (0)