Skip to content

Commit 34e17d7

Browse files
authored
Merge pull request #28 from jmkerloch/fix-python-3.9.5
fix: use union for python 3.9.5 support
2 parents c018e67 + cf12b8c commit 34e17d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: a00_qpip/plugin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55
from collections import defaultdict, namedtuple
66
from importlib import metadata
7+
from typing import Union
78

89
import pkg_resources
910
import qgis
@@ -131,7 +132,7 @@ def patched_load_plugin(self, packageName):
131132
self.start_packages([packageName])
132133
return True
133134

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

0 commit comments

Comments
 (0)