Skip to content

Commit

Permalink
build(deps): bump black from 21.12b0 to 22.1.0 (#737)
Browse files Browse the repository at this point in the history
* build(deps): bump black from 21.12b0 to 22.1.0

Bumps [black](https://github.com/psf/black) from 21.12b0 to 22.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits/22.1.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply lint fix from black upgrade

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Duckworth <duckontheweb@gmail.com>
  • Loading branch information
dependabot[bot] and duckontheweb authored Jan 31, 2022
1 parent 11e9553 commit bdecac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions pystac/stac_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,10 @@ def full_copy(
target = cached_target
else:
target_parent = None
if (
link.rel
in [
pystac.RelType.CHILD,
pystac.RelType.ITEM,
]
and isinstance(clone, pystac.Catalog)
):
if link.rel in [
pystac.RelType.CHILD,
pystac.RelType.ITEM,
] and isinstance(clone, pystac.Catalog):
target_parent = clone
copied_target = target.full_copy(root=root, parent=target_parent)
if root is not None:
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mypy==0.931
flake8==4.0.1
black==21.12b0
black==22.1.0

codespell==2.1.0

Expand Down

0 comments on commit bdecac9

Please sign in to comment.