Skip to content

Commit

Permalink
Typing experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed Apr 6, 2024
1 parent 6fda598 commit 7dbbe6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .[dev,cli]
python -m pip install opencv-python-headless>=4.8
python -m pip install 'opencv-python-headless>=4.8,<4.9'
- name: Lint
run: |
make lint
Expand Down
2 changes: 2 additions & 0 deletions april_vision/cli/marker_generator/marker_modes/mode_single.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import logging
from typing import Union

from PIL import Image

Expand All @@ -21,6 +22,7 @@ def main(args: argparse.Namespace) -> None:

marker_ids = parse_marker_ranges(tag_data, args.range)

page_size: Union[PageSize, CustomPageSize]
if args.page_size == 'CROPPED':
# Allow for an additional marker pixel border
required_width = args.marker_size * (12 / 8)
Expand Down
2 changes: 1 addition & 1 deletion april_vision/cli/marker_generator/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from enum import Enum
from typing import List, Tuple

from font_roboto import Roboto # type: ignore[import]
from font_roboto import Roboto # type: ignore[import,unused-ignore]

from april_vision.cli.utils import ApriltagFamily, parse_ranges

Expand Down

0 comments on commit 7dbbe6e

Please sign in to comment.