Skip to content

Commit

Permalink
Merge branch 'pre-commit-ci-update-config'
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Jul 9, 2021
2 parents dea6106 + 99d90ac commit b868bec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: 21.5b2
rev: 21.6b0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
rev: v0.910
hooks:
- id: mypy
- repo: https://github.com/PyCQA/flake8
Expand All @@ -18,7 +18,7 @@ repos:
- id: check-toml
- id: check-yaml
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
rev: 5.9.1
hooks:
- id: isort
additional_dependencies: [toml]
Expand Down
2 changes: 1 addition & 1 deletion gaphas/painter/handlepainter.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _draw_handles(
cairo.set_source_rgba(r / 4.0, g / 4.0, b / 4.0, opacity * 1.3)
cairo.stroke()
if h.connectable:
cairo.rectangle(-2, -2, 4 ,4)
cairo.rectangle(-2, -2, 4, 4)
cairo.fill()
cairo.restore()
cairo.restore()
Expand Down
4 changes: 2 additions & 2 deletions gaphas/solver/constraint.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from __future__ import annotations

from typing import Callable, Collection
from typing import Callable, Collection, Hashable

from typing_extensions import Protocol, runtime_checkable

from gaphas.solver.variable import Variable


@runtime_checkable
class Constraint(Protocol):
class Constraint(Protocol, Hashable):
def add_handler(self, handler: Callable[[Constraint], None]) -> None:
...

Expand Down

0 comments on commit b868bec

Please sign in to comment.