Skip to content

Commit

Permalink
Merge pull request #28 from jmkerloch/fix-python-3.9.5
Browse files Browse the repository at this point in the history
fix: use union for python 3.9.5 support
m-kuhn authored Oct 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents c018e67 + cf12b8c commit 34e17d7
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
@@ -4,6 +4,7 @@
import sys
from collections import defaultdict, namedtuple
from importlib import metadata
from typing import Union

import pkg_resources
import qgis
@@ -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.

0 comments on commit 34e17d7

Please sign in to comment.