Skip to content

Commit bed2ac6

Browse files
committed
fixup
1 parent df816a7 commit bed2ac6

File tree

13 files changed

+17
-5
lines changed

13 files changed

+17
-5
lines changed

modelbaker/dataobjects/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(
3131
self,
3232
name: Optional[str] = None,
3333
expanded: bool = True,
34-
ignore_node_names: bool = None,
34+
ignore_node_names: bool = False,
3535
static_sorting: bool = False,
3636
) -> None:
3737
self.name = name

modelbaker/dbconnector/db_connector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"""
1313

1414
import fnmatch
15+
from typing import Optional
1516

1617
from qgis.PyQt.QtCore import QObject, pyqtSignal
1718

modelbaker/dbconnector/gpkg_connector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import re
1717
import sqlite3
1818
import uuid
19+
from typing import Optional
1920

2021
import qgis.utils
2122
from qgis.core import Qgis

modelbaker/dbconnector/mssql_connector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import numbers
1515
import re
16+
from typing import Optional
1617

1718
import pyodbc
1819
from qgis.core import Qgis

modelbaker/dbconnector/pg_connector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import logging
1515
import re
16+
from typing import Optional
1617

1718
import psycopg2
1819
import psycopg2.extras

modelbaker/generator/domain_relations_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"""
1313

1414
import re
15+
from typing import Optional
1516

1617
from ..dataobjects.relations import Relation
1718

modelbaker/generator/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(
4444
inheritance: str,
4545
schema: Optional[str] = None,
4646
pg_estimated_metadata: bool = False,
47-
parent: QObject = None,
47+
parent: Optional[QObject] = None,
4848
mgmt_uri: Optional[str] = None,
4949
consider_basket_handling: bool = False,
5050
optimize_strategy: OptimizeStrategy = OptimizeStrategy.NONE,

modelbaker/ilitoppingmaker/ilidata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import uuid
1818
import xml.dom.minidom as minidom
1919
import xml.etree.ElementTree as ET
20+
from typing import Optional
2021

2122
from .ilitarget import IliTarget
2223

modelbaker/ilitoppingmaker/iliprojecttopping.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
(at your option) any later version.
1212
"""
1313

14+
from typing import Optional
1415

1516
from qgis.core import Qgis, QgsExpressionContextUtils, QgsProject
1617

@@ -62,7 +63,7 @@ def models(self, models: list) -> None:
6263
def referencedata_paths(self, paths: list) -> None:
6364
self.metaconfig.referencedata_paths = paths
6465

65-
def makeit(self, project: QgsProject = None) -> str:
66+
def makeit(self, project: Optional[QgsProject] = None) -> str:
6667
"""
6768
Creates everything - generates all the files.
6869
Returns the path to the ilidata.xml file.

modelbaker/ilitoppingmaker/ilitarget.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import datetime
1616
import os
1717
import pathlib
18+
from typing import Optional
1819

1920
from ..libs.toppingmaker import Target
2021
from ..libs.toppingmaker.utils import slugify

0 commit comments

Comments
 (0)