Skip to content

v1.7.0

Compare
Choose a tag to compare
@spyoungtech spyoungtech released this 21 Apr 04:00
· 70 commits to main since this release
c6a8006

What's Changed

  • mouse_position, get_mouse_position, pixel_search, and image_search now return a Coordinates named tuple (typing.NamedTuple) type instead of just a plain tuple[int, int].
  • Refactored types shared between sync and async into a common, internal, _types module.
  • The Position type is now created using typing.NamedTuple rather than collections.namedtuple.
  • Exposes more types directly via __init__.py so they can be imported without reaching into internal modules.

If you were previously importing types from internal modules and are type-checking with mypy in --strict mode, you may have to adjust your import statements when upgrading to this version or later to ensure mypy checks pass.

Full Changelog: v1.6.3...v1.7.0