Skip to content

Commit

Permalink
fix: use union for python 3.9.5 support
Browse files Browse the repository at this point in the history
- fixes #27
  • Loading branch information
jmkerloch authored Oct 24, 2024
1 parent c018e67 commit cf12b8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion a00_qpip/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys
from collections import defaultdict, namedtuple
from importlib import metadata
from typing import Union

import pkg_resources
import qgis
Expand Down Expand Up @@ -131,7 +132,7 @@ def patched_load_plugin(self, packageName):
self.start_packages([packageName])
return True

def check_deps(self, additional_plugins=[]) -> MainDialog | bool:
def check_deps(self, additional_plugins=[]) -> Union[MainDialog, bool]:
"""
This checks dependencies for installed plugins and to-be installed plugins. If
anything is missing, shows a GUI to install them.
Expand Down

0 comments on commit cf12b8c

Please sign in to comment.