Skip to content

Commit 7468d09

Browse files
committed
[pycups] Add stubs
1 parent 567a205 commit 7468d09

4 files changed

Lines changed: 909 additions & 0 deletions

File tree

pyrightconfig.stricter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"stubs/psutil/psutil/__init__.pyi",
8080
"stubs/psycopg2",
8181
"stubs/pyasn1",
82+
"stubs/pycups",
8283
"stubs/pycurl",
8384
"stubs/Pygments",
8485
"stubs/PyMySQL",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -- ignore "stub does not have *args argument"
2+
# While these functions technically take any args and kwargs, they ignore
3+
# all of them, so it is better to type them as taking no arguments.
4+
cups.Attribute.__init__
5+
cups.Constraint.__init__
6+
cups.Dest.__init__
7+
cups.Group.__init__
8+
cups.Option.__init__

stubs/pycups/METADATA.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version = "2.0.*"
2+
upstream-repository = "https://github.com/OpenPrinting/pycups"

0 commit comments

Comments
 (0)