Keeping 2 deps in sync? (pyXYZ + types-pyXYZ) #10393
-
Is there any way to specify that the versions of a dependency and its types library stub are kept in sync? I just had a situation in which pynput and types-pynput were in v1.8.1. Then I changed another dependency, which automatically downgraded pynput to 1.7.7 for compatibility; but this left types-pynput's version out of sync, leaving it at v1.8.1. I fixed the problem indirectly, by setting both deps to a narrower version range. But I wonder if there is a better solution that would allow them both to jump together to 1.8.x when their deps allow it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @hmijail, if fin swimmer |
Beta Was this translation helpful? Give feedback.
Hey @hmijail,
if
types-pynput
requires a specific version (range) ofpynput
it should declare it. Then, if another version ofpynput
is installed by Poetry, Poetry would automatically select a compatible version of this package (at least if it is in the version range you allow).fin swimmer