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 import base64
from typing import Any from typing import Any, Union
import requests import requests
...@@ -12,7 +12,7 @@ class NtfyHelper: ...@@ -12,7 +12,7 @@ class NtfyHelper:
topicName: str, topicName: str,
message: str, message: str,
tags: list[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')) base64Encoded = base64.b64encode(f'{userName}:{password}'.encode('utf-8'))
baseHeaders = { baseHeaders = {
......
...@@ -3,7 +3,7 @@ from setuptools import setup ...@@ -3,7 +3,7 @@ from setuptools import setup
setup( setup(
name='TheCodeLabs-BaseUtils', name='TheCodeLabs-BaseUtils',
packages=['TheCodeLabs_BaseUtils'], packages=['TheCodeLabs_BaseUtils'],
version='1.8.1', version='1.8.2',
license='MIT', license='MIT',
description='Useful python classes', description='Useful python classes',
author='TheCodeLabs', author='TheCodeLabs',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment