Skip to content

Commit 930fa46

Browse files
committed
refactor: use list over useless lambda in default_factories
1 parent 7dfbc8e commit 930fa46

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,14 @@ select = [
263263
#"B",
264264
#"A"
265265
#"COM"
266-
#"C4", TODO enable this
266+
# "C4", # TODO enable this
267267
"DTZ",
268268
"T10",
269269
# "EM",
270270
"ISC",
271271
"G",
272+
#"INP",
273+
"PIE"
272274
]
273275

274276

@@ -277,8 +279,6 @@ select = [
277279

278280

279281
[tool.mypy]
280-
# MyPy config
281-
# File reference here - http://mypy.readthedocs.io/en/latest/config_file.html#config-file
282282
python_version = 3.8
283283

284284
strict = true

robotcode/language_server/robotframework/diagnostics/namespace.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,13 +529,13 @@ def __str__(self) -> str:
529529

530530
@dataclass
531531
class ResourceEntry(LibraryEntry):
532-
imports: List[Import] = field(default_factory=lambda: [])
533-
variables: List[VariableDefinition] = field(default_factory=lambda: [])
532+
imports: List[Import] = field(default_factory=list)
533+
variables: List[VariableDefinition] = field(default_factory=list)
534534

535535

536536
@dataclass
537537
class VariablesEntry(LibraryEntry):
538-
variables: List[ImportedVariableDefinition] = field(default_factory=lambda: [])
538+
variables: List[ImportedVariableDefinition] = field(default_factory=list)
539539

540540

541541
class DocumentType(enum.Enum):

0 commit comments

Comments
 (0)