Skip to content

Commit

Permalink
Fix linting issues in non-autogenerated files
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Nov 23, 2023
1 parent 8578db5 commit 1a68416
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ORStools/common/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _generate_auth_url(self, path, params):
:rtype: string
"""

if type(params) is dict:
if isinstance(params, dict):
params = sorted(dict(**params).items())

# Only auto-add API key when using ORS. If own instance, API key must
Expand Down
9 changes: 6 additions & 3 deletions ORStools/common/networkaccessmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@

import re
import io
import urllib.request, urllib.error, urllib.parse
import urllib.parse

from qgis.PyQt.QtCore import QUrl, QEventLoop
from qgis.PyQt.QtNetwork import QNetworkRequest, QNetworkReply
from qgis.PyQt.QtCore import (QUrl,
QEventLoop)

from qgis.PyQt.QtNetwork import (QNetworkRequest,
QNetworkReply)

from qgis.core import (
QgsApplication,
Expand Down
1 change: 0 additions & 1 deletion ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
from ORStools.utils import exceptions, maptools, logger, configmanager, transform
from .ORStoolsDialogConfig import ORStoolsDialogConfigMain
from .ORStoolsDialogUI import Ui_ORStoolsDialogBase
from . import resources_rc


def on_config_click(parent):
Expand Down

0 comments on commit 1a68416

Please sign in to comment.