Skip to content

Commit 0034e94

Browse files
committed
Fix/Ignore pre-commit errors
1 parent 3e95fd0 commit 0034e94

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/source/reference/command_line.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ Below is a list with all available subcommands.
450450
--broker-host HOSTNAME Hostname for the message broker. [default: 127.0.0.1]
451451
--broker-port INTEGER Port for the message broker. [default: 5672]
452452
--broker-virtual-host TEXT Name of the virtual host for the message broker without
453-
leading forward slash.
453+
leading forward slash. [default: ""]
454454
--repository DIRECTORY Absolute path to the file repository.
455455
--test-profile Designate the profile to be used for running the test
456456
suite only.

src/aiida/common/pydantic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ class Model(BaseModel):
4242

4343
for key, value in (('priority', priority), ('short_name', short_name), ('option_cls', option_cls)):
4444
if value is not None:
45-
field_info.metadata.append({key: value})
45+
field_info.metadata.append({key: value}) # type: ignore[union-attr]
4646

4747
return field_info

tests/cmdline/groups/test_dynamic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Model(BaseModel):
1717
union_type: t.Union[int, float] = Field(title='Union type')
1818
without_default: str = Field(title='Without default')
1919
with_default: str = Field(title='With default', default='default')
20-
with_default_factory: str = Field(title='With default factory', default_factory=lambda: True)
20+
with_default_factory: str = Field(title='With default factory', default_factory=lambda: True) # type: ignore[assignment]
2121

2222

2323
def test_list_options(entry_points):

0 commit comments

Comments
 (0)