Skip to content

Commit

Permalink
fix: fix 3.7 build (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 authored Dec 24, 2023
1 parent 42c3c61 commit 4967f01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ ignore_errors = true
module = ["wrapt", "msgspec"]
ignore_missing_imports = true

# remove when dropping python 3.7
[[tool.mypy.overrides]]
module = ["psygnal._signal"]
warn_unused_ignores = false

# https://coverage.readthedocs.io/en/6.4/config.html
[tool.coverage.report]
exclude_lines = [
Expand Down
4 changes: 3 additions & 1 deletion src/psygnal/_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@ def _wrapper(
extra = f"- Slot types {slot_sig} do not match types in signal."
self._raise_connection_error(slot, extra)

cb = weak_callback(
# this type ignore is only needed to build mypyc on pythong 3.7
# can be removed when we drop support for 3.7
cb = weak_callback( # type: ignore
slot,
max_args=max_args,
finalize=self._try_discard,
Expand Down

0 comments on commit 4967f01

Please sign in to comment.