Skip to content

fix: Properly annotate check_dependencies's selector_method arg#287

Merged
sdn4z merged 1 commit into
elementsinteractive:mainfrom
sdn4z:fix-typing
Sep 1, 2025
Merged

fix: Properly annotate check_dependencies's selector_method arg#287
sdn4z merged 1 commit into
elementsinteractive:mainfrom
sdn4z:fix-typing

Conversation

@sdn4z
Copy link
Copy Markdown
Collaborator

@sdn4z sdn4z commented Sep 1, 2025

Typing was incorrect in check_dependencies function, where it was stated that selector_method was a mandatory argument, while it wasn't.

refs #280

@sdn4z sdn4z requested a review from scastlara as a code owner September 1, 2025 09:51
@github-actions github-actions Bot added the fix label Sep 1, 2025
Comment thread tests/main/test_main.py
mock_top_pypi_reference.return_value.get_packages.return_value = {"mypackage"}
mock_get_parsed_dependencies_from_file.return_value = {"my-package"}
with patch("twyn.main.track") as m_track:
check_dependencies("all", use_track=True)
Copy link
Copy Markdown
Collaborator Author

@sdn4z sdn4z Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This proves it is still working after the new changes

Comment thread src/twyn/main.py
@sdn4z sdn4z merged commit 233168b into elementsinteractive:main Sep 1, 2025
12 checks passed
@sdn4z sdn4z deleted the fix-typing branch September 1, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants