Skip to content

Commit

Permalink
Merge branch 'main' into issue_4036
Browse files Browse the repository at this point in the history
  • Loading branch information
henriholopainen authored Nov 18, 2023
2 parents 61bf523 + 5773d5c commit 3c87261
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/usage_and_configuration/the_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ In a [configuration file](#configuration-via-a-file), you can write:
target-version = ["py38", "py39", "py310", "py311"]
```

By default, Black will infer target versions from the project metadata in
`pyproject.toml`, specifically the `[project.requires-python]` field. If this does not
yield conclusive results, Black will use per-file auto-detection.

_Black_ uses this option to decide what grammar to use to parse your code. In addition,
it may use it to decide what style to use. For example, support for a trailing comma
after `*args` in a function call was added in Python 3.5, so _Black_ will add this comma
Expand Down
2 changes: 1 addition & 1 deletion src/black/concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def maybe_install_uvloop() -> None:
pass


def cancel(tasks: Iterable["asyncio.Task[Any]"]) -> None:
def cancel(tasks: Iterable["asyncio.Future[Any]"]) -> None:
"""asyncio signal handler that cancels all `tasks` and reports to stderr."""
err("Aborted!")
for task in tasks:
Expand Down

0 comments on commit 3c87261

Please sign in to comment.