File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/qgis_server_light/interface Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,12 @@ def query_layers(self):
103
103
104
104
@dataclass
105
105
class QslAbstractJob :
106
- svg_paths : List [str ] = field (metadata = {"type" : "Element" , "required" : True })
106
+ svg_paths : List [str ] = field (
107
+ default_factory = list , metadata = {"type" : "Element" , "required" : True }
108
+ )
107
109
108
110
109
- @dataclass
111
+ @dataclass ( kw_only = True )
110
112
class QslGetMapJob (QslAbstractJob ):
111
113
"""A job to be rendered as an image"""
112
114
@@ -132,7 +134,7 @@ def get_layer_by_name(self, name: str) -> Raster | Vector | Custom:
132
134
raise AttributeError (f'No layer with name "{ name } was found."' )
133
135
134
136
135
- @dataclass
137
+ @dataclass ( kw_only = True )
136
138
class QslGetFeatureInfoJob (QslAbstractJob ):
137
139
"""A job to extract feature info"""
138
140
@@ -141,7 +143,7 @@ class QslGetFeatureInfoJob(QslAbstractJob):
141
143
)
142
144
143
145
144
- @dataclass
146
+ @dataclass ( kw_only = True )
145
147
class QslLegendJob (QslAbstractJob ):
146
148
"""Render legend"""
147
149
You can’t perform that action at this time.
0 commit comments