Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekseev committed Aug 2, 2024
1 parent 9b93162 commit fff6d6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,10 @@ jobs:
twine upload dist/*
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ steps.release_output.outputs.VERSION }}
name: Release ${{ steps.release_output.outputs.VERSION }}
body: ${{ steps.release_output.outputs.BODY }}
draft: false
prerelease: ${{ contains(steps.release_output.outputs.VERSION, 'rc') || contains(steps.release_output.outputs.VERSION, 'b') || contains(steps.release_output.outputs.VERSION, 'a') }}
4 changes: 2 additions & 2 deletions src/extra_checks/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self) -> None:
self._config: Optional[ChecksConfig] = None

def _register(
self, tags: List[str], check_class: "Type[BaseCheck]"
self, tags: Sequence[str], check_class: "Type[BaseCheck]"
) -> "Type[BaseCheck]":
self.registered_checks[check_class] = tags
return check_class
Expand All @@ -105,7 +105,7 @@ def _bind_handler(
) -> Optional[Callable]:
if checks:
f = partial(handler, checks, config)
django.core.checks.register(f, tag) # type: ignore
django.core.checks.register(f, tag) # pyright: ignore
return f
return None

Expand Down

0 comments on commit fff6d6a

Please sign in to comment.