Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
rev: v0.16.4
rev: v0.16.5
- repo: local
hooks:
- id: mypy
Expand Down
12 changes: 4 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,7 @@ changed for this version.
be retied or not. Example:

``` python
@retry(
exceptions = {ValueError: lambda x: "Invalid" not in str(x)}
)
@retry(exceptions={ValueError: lambda x: "Invalid" not in str(x)})
def func() -> None:
value = some_function()

Expand All @@ -549,7 +547,7 @@ changed for this version.
`requests` library, you can do

``` python
retry(exceptions = request_exceptions())
retry(exceptions=request_exceptions())
```

### Changed
Expand Down Expand Up @@ -1031,10 +1029,7 @@ config: MyConfig = resolver.config


# With path to a yaml file:
resolver = ConfigResolver(
config_path="/path/to/config.yaml",
config_type=MyConfig
)
resolver = ConfigResolver(config_path="/path/to/config.yaml", config_type=MyConfig)
config: MyConfig = resolver.config
```

Expand Down Expand Up @@ -1082,6 +1077,7 @@ with Extractor(
) as extractor:
extractor.run()


# Using subclass:
class MyExtractor(Extractor):
def __init__(self):
Expand Down
Loading