Skip to content

Commit

Permalink
chore: Bump black from 22.12.0 to 24.3.0 (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paul Spangler <[email protected]>
  • Loading branch information
dependabot[bot] and spanglerco authored Mar 20, 2024
1 parent 3459a50 commit cd34232
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 28 deletions.
16 changes: 10 additions & 6 deletions nisystemlink/clients/tag/_tag_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,11 @@ def delete(self, tags: Iterable[Union[tbase.TagData, str]]) -> None:
raise ValueError("tags cannot contain None")

validated_paths = [
tbase.TagPathUtilities.validate(t)
if isinstance(t, str)
else t.validate_path()
(
tbase.TagPathUtilities.validate(t)
if isinstance(t, str)
else t.validate_path()
)
for t in tags
]

Expand Down Expand Up @@ -615,9 +617,11 @@ def delete_async(
raise ValueError("tags cannot contain None")

validated_paths = [
tbase.TagPathUtilities.validate(t)
if isinstance(t, str)
else t.validate_path()
(
tbase.TagPathUtilities.validate(t)
if isinstance(t, str)
else t.validate_path()
)
for t in tags
]
except Exception as ex:
Expand Down
51 changes: 31 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ uplink = "^0.9.7"
pydantic = "^1.10.2"

[tool.poetry.group.dev.dependencies]
black = "^22.10.0"
black = ">=22.10,<25.0"
flake8 = "^5.0.4"
flake8-import-order = "^0.18.1"
pytest = "^7.2.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/tag/test_tagsubscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test__subscribed_values_updated__subscription_receives_events(self):
values
) # len(set(t.tag.data_type for t in values))

for (tag, reader) in values:
for tag, reader in values:
assert reader is not None
if tag.data_type == tbase.DataType.DOUBLE:
assert double_value == reader.read().value
Expand Down

0 comments on commit cd34232

Please sign in to comment.