Skip to content

Commit b31246e

Browse files
committed
update xmlsec.constants stubs
Signed-off-by: oleg.hoefling <[email protected]>
1 parent df14fa4 commit b31246e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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)

0 commit comments

Comments
 (0)