Skip to content

Commit b3f8089

Browse files
committed
refactored dict method to dict literal for pylint
1 parent 8bfdfa9 commit b3f8089

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

sbol3/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _parse_objects(self, graph: rdflib.Graph) -> Dict[str, SBOLObject]:
197197
def _parse_attributes(objects, graph) -> dict[str, Identified]:
198198
# Track the child objects that get assigned to optimize the
199199
# search for orphans later in the loading process.
200-
child_objects = dict()
200+
child_objects = {}
201201
for s, p, o in graph.triples((None, None, None)):
202202
str_s = str(s)
203203
str_p = str(p)

sbol3/object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def copy(self, target_doc=None, target_namespace=None):
117117
except KeyError:
118118
logging.warning('No builder found for %s; assuming %s', self.type_uri, self.__class__.__name__)
119119
builder = self.__class__
120-
new_obj = builder(**dict(identity=new_uri, type_uri=self.type_uri))
120+
new_obj = builder(**{'identity': new_uri, 'type_uri': self.type_uri})
121121

122122
# Copy properties
123123
for property_uri, value_store in self._properties.items():

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ disable = abstract-class-instantiated,
4848
unused-import,
4949
unused-variable,
5050
unused-wildcard-import,
51-
use-dict-literal,
5251
useless-parent-delegation,
5352
useless-return,
5453
wildcard-import

0 commit comments

Comments
 (0)