Skip to content
Snippets Groups Projects
Commit c31f0093 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

BaseUtils: fix type hints for python 3.9

parent 68873bf6
No related branches found
No related tags found
No related merge requests found
import base64
from typing import Any
from typing import Any, Union
import requests
......@@ -12,7 +12,7 @@ class NtfyHelper:
topicName: str,
message: str,
tags: list[str],
headers: dict[str, Any] | None = None) -> None:
headers: Union[dict[str, Any], None] = None) -> None:
base64Encoded = base64.b64encode(f'{userName}:{password}'.encode('utf-8'))
baseHeaders = {
......
......@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='TheCodeLabs-BaseUtils',
packages=['TheCodeLabs_BaseUtils'],
version='1.8.1',
version='1.8.2',
license='MIT',
description='Useful python classes',
author='TheCodeLabs',
......
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