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

improve detection of Any marker union #293

Merged

Conversation

dimbleby
Copy link
Contributor

Resolves: python-poetry#

  • Added tests for changed code.
  • Updated documentation for changed code.

Another trivial simplification of markers

@dimbleby dimbleby force-pushed the another-marker-simplification branch from 5db98f3 to 9cd9861 Compare February 12, 2022 15:34
@radoering
Copy link
Member

Nice. I'm just wondering if "overlapped" is the correct word. That sounds like "the intersection is not empty". However, the variable only becomes True if one marker is a subset of the other, doesn't it? After reading the introduction about subsets at Wikipedia, I think "contained" or "included" may be better suited than "overlapped".

@dimbleby
Copy link
Contributor Author

Well it's an improvement on "intersected"! But I agree that "included" is better, will change.

@dimbleby dimbleby force-pushed the another-marker-simplification branch from 9cd9861 to 31e056f Compare February 12, 2022 19:18
@sonarcloud
Copy link

sonarcloud bot commented Feb 12, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.5% 0.5% Duplication

@finswimmer finswimmer merged commit 7b8f8b0 into python-poetry:master Feb 26, 2022
@dimbleby dimbleby deleted the another-marker-simplification branch February 26, 2022 12:10
@finswimmer finswimmer mentioned this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants