Skip to content

Commit c8dc41a

Browse files
authored
Merge pull request #179 from hoefling/lxml-stubs
Replace local typeshed with lxml-stubs
2 parents 2f28106 + b31246e commit c8dc41a

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

mypy.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[mypy]
22
files = src
3-
mypy_path = typeshed/
43
ignore_missing_imports = False
54
warn_unused_configs = True
65
disallow_subclassing_any = True

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-r requirements.txt
22
pytest>=4.6.9
33
hypothesis
4+
lxml-stubs

src/xmlsec/constants.pyi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import sys
2-
from typing import NamedTuple
2+
from typing import NamedTuple, Optional
33

44
if sys.version_info >= (3, 8):
55
from typing import Final
66
else:
77
from typing_extensions import Final
88

99
class __KeyData(NamedTuple): # __KeyData type
10-
href: str
1110
name: str
11+
href: Optional[str]
1212

1313
class __Transform(NamedTuple): # __Transform type
14-
href: str
1514
name: str
15+
href: Optional[str]
1616
usage: int
1717

1818
DSigNs: Final = 'http://www.w3.org/2000/09/xmldsig#'
@@ -109,7 +109,9 @@ TransformInclC14N11WithComments: Final = __Transform(
109109
'c14n11-with-comments', 'http://www.w3.org/2006/12/xml-c14n11#WithComments', 3
110110
)
111111
TransformInclC14NWithComments: Final = __Transform(
112-
'c14n-with-comments', 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments', 3
112+
'c14n-with-comments',
113+
'http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments',
114+
3,
113115
)
114116
TransformKWAes128: Final = __Transform('kw-aes128', 'http://www.w3.org/2001/04/xmlenc#kw-aes128', 16)
115117
TransformKWAes192: Final = __Transform('kw-aes192', 'http://www.w3.org/2001/04/xmlenc#kw-aes192', 16)

typeshed/lxml/__init__.pyi

Whitespace-only changes.

typeshed/lxml/etree.pyi

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

0 commit comments

Comments
 (0)