Skip to content

Commit

Permalink
Fix mypy warnings
Browse files Browse the repository at this point in the history
Fontconfig fix is copying a change made on the main branch; draw fix is
removing a workaround needed for an older mypy version.
  • Loading branch information
kepstin committed Dec 11, 2024
1 parent 60ab0ac commit 368cf15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bbb_presentation_video/bindings/fontconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FontconfigError(Exception):


def _FcBool_errcheck(
result: Optional[Type[ctypes._CData]],
result: Optional[ctypes._CData],
_func: Any,
_arguments: Any,
) -> Any:
Expand Down
3 changes: 1 addition & 2 deletions bbb_presentation_video/renderer/tldraw/shape/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ def finalize_draw(
if len(shape.points[0]) == 2:
simulate_pressure = True
else:
# Work around python/mypy#1178
first_point = cast(Tuple[float, float, float], shape.points[0])
first_point = shape.points[0]
if first_point[2] == 0.5:
simulate_pressure = True

Expand Down

0 comments on commit 368cf15

Please sign in to comment.