Skip to content
Snippets Groups Projects
Unverified Commit c437e7e1 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix typing hints.

parent b94e2562
No related branches found
No related tags found
No related merge requests found
from datetime import date, time
from typing import BinaryIO, Optional
from typing import BinaryIO, Optional, Union
from xml.dom import minidom, Node
from django.http import HttpRequest
......@@ -28,7 +28,7 @@ def get_child_node_id(node: Node, tag: str) -> Optional[str]:
return None
def untis_import_xml(request: HttpRequest, untis_xml: Union{BinaryIO, str]) -> None:
def untis_import_xml(request: HttpRequest, untis_xml: Union[BinaryIO, str]) -> None:
dom = minidom.parse(untis_xml)
subjects = dom.getElementsByTagName('subject')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment