Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Subsystem.get_options() in favor of Subsystem.options #10493

Merged
merged 2 commits into from Jul 28, 2020

Conversation

Eric-Arellano
Copy link
Contributor

These methods do the same thing, so it's confusing to have both.

This also adds @property to several subsystems so that MyPy understands our options. This is clunky, but is an adequate intermediate solution until we redesign the options registration system.

Finally, this removes two unnecessary intermediate types in subprocess_environment.py and python_native_code.py.

[ci skip-rust]
[ci skip-build-wheels]

[ci skip-build-wheels]

[ci skip-rust]

[ci skip-build-wheels]
Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks!

src/python/pants/notes/1.17.x.rst Outdated Show resolved Hide resolved
[ci skip-rust]
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit 4cb3738 into pantsbuild:master Jul 28, 2020
@Eric-Arellano Eric-Arellano deleted the deprecated-get-options branch July 28, 2020 20:30
@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling e2a11c5 on Eric-Arellano:deprecated-get-options into 01ba67e on pantsbuild:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants