summaryrefslogtreecommitdiff
path: root/src/saml2/__init__.py
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2023-02-01 09:41:45 +0100
committerIvan Kanakarakis <ivan.kanak@gmail.com>2023-02-14 18:20:44 +0200
commite9ac5432d1f1aa061541770b1bd5629b3fdc7484 (patch)
tree65c81406d10a9cecbd7431e8c0655b5353f5b068 /src/saml2/__init__.py
parent4d77c554f6c2e9d09f5ba1467bd88c781937ffab (diff)
downloadpysaml2-e9ac5432d1f1aa061541770b1bd5629b3fdc7484.tar.gz
Fix initial issues reported by mypy.
Diffstat (limited to 'src/saml2/__init__.py')
-rw-r--r--src/saml2/__init__.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/saml2/__init__.py b/src/saml2/__init__.py
index 0397a365..01067b4b 100644
--- a/src/saml2/__init__.py
+++ b/src/saml2/__init__.py
@@ -17,6 +17,9 @@
"""
import logging
+from typing import Any
+from typing import Optional
+from typing import Union
from xml.etree import ElementTree
import defusedxml.ElementTree
@@ -433,14 +436,14 @@ class SamlBase(ExtensionContainer):
nodes into ExtensionElements.
"""
- c_children = {}
- c_attributes = {}
- c_attribute_type = {}
- c_child_order = []
- c_cardinality = {}
- c_any = None
- c_any_attribute = None
- c_value_type = None
+ c_children: Any = {}
+ c_attributes: Any = {}
+ c_attribute_type: Any = {}
+ c_child_order: list[str] = []
+ c_cardinality: dict[str, dict[str, int]] = {}
+ c_any: Optional[dict[str, str]] = None
+ c_any_attribute: Optional[dict[str, str]] = None
+ c_value_type: Any = None
c_ns_prefix = None
def _get_all_c_children_with_order(self):