linting: fix use-dict-literal

Use the dict literal `{}` instead of `dict()`, this is a warning in
newer pylints and its consistent with what we do elsewhere.
This commit is contained in:
Simon de Vlieger 2022-08-18 09:17:09 +02:00 committed by David Rheinsberg
parent 873a071d43
commit 321587ad41
2 changed files with 2 additions and 2 deletions

View file

@ -178,7 +178,7 @@ class PasswdLike:
def __init__(self):
"""Initialize an empty PasswdLike object"""
self.db = dict()
self.db = {}
@classmethod
def from_file(cls, path: PathLike, allow_missing_file: bool = False):

View file

@ -79,7 +79,7 @@ class Subscriptions:
parser = configparser.ConfigParser()
parser.read_file(fp)
repositories = dict()
repositories = {}
for section in parser.sections():
current = {
"matchurl": cls._process_baseurl(parser.get(section, "baseurl"))