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

Switch in singular the names for the Enums classes with non-simultaneously-coexisting-values #119

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

stankudrow
Copy link
Contributor

@stankudrow stankudrow commented Oct 17, 2024

After some inquiries on enumeration naming guidelines, I realised that it might be a nice idea to have the non bit-field or multiple-flag enumerations singular. the existing enums bear rather mutual exclusive values which cannot be set simultaneously. The rationale -> nats-io/nats.py#619 (comment) .

This PR is important to be considered before the asynch new version release ( the issue #116 ) since it would be easier to handle this now until the enums become a part of public API.

@@ -141,7 +141,7 @@ async def fetchone(self):
if self._stream_results:
try:
return await self._rows.next()
except: # noqa: E722
except Exception:
Copy link
Contributor Author

@stankudrow stankudrow Oct 17, 2024

Choose a reason for hiding this comment

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

@llchan, brought from #118 as well.

@stankudrow stankudrow changed the title Make non-flag Enum classes singular Switch in singular the names for the Enums classes with non-simultaneously-coexisting-values Oct 17, 2024
@stankudrow
Copy link
Contributor Author

@long2ice , need you help, please. This PR also includes the changes from this one ( #118 ), but without messing the CHANGELOG.md file up. Having this PR merged, we can close one issue ( #117 ) and two PRs: this one and, again, #118, which is nice.

@long2ice long2ice merged commit c75d73e into long2ice:dev Oct 17, 2024
1 check passed
@long2ice
Copy link
Owner

Thanks!

@stankudrow
Copy link
Contributor Author

@llchan, you can close this issue #118 .

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.

2 participants