Skip to content

Commit

Permalink
fixing checks errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Rondan committed Apr 12, 2024
1 parent a3a7a14 commit 9908fe3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Expand Up @@ -7,5 +7,11 @@ check_untyped_defs = true
ignore_missing_imports = true
no_warn_no_return = true

[[tool.mypy.overrides]]
module = "queuelib.tests.*"
allow_untyped_defs = true
allow_untyped_calls = true
check_untyped_defs = false

[tool.black]
target-version = ["py38", "py39", "py310", "py311", "py312"]
4 changes: 2 additions & 2 deletions queuelib/queue.py
Expand Up @@ -15,9 +15,9 @@ class _BaseQueueMeta(type):
"""

def __instancecheck__(cls, instance: Any) -> bool:
return cls.__subclasscheck__(
return cls.__subclasscheck__( # pylint: disable=no-value-for-parameter
type(instance)
) # pylint: disable=no-value-for-parameter
)

def __subclasscheck__(cls, subclass: Any) -> bool:
return (
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py, pypy3, pylint, typing, twinecheck
envlist = py, pylint, typing, twinecheck, pre-commit

[testenv]
deps =
Expand Down

0 comments on commit 9908fe3

Please sign in to comment.