Skip to content

[CLEANUP] Use the accessor for the charset in ParserState #937

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

Closed
wants to merge 1 commit into from

Conversation

oliverklee
Copy link
Collaborator

Also make the getter private as it's not (intended to be) called from the outside.

As the whole ParserState class is @internal, this does does not require a deprecation process.

Also make the getter `private` as it's not (intended to be)
called from the outside.

As the whole `ParserState` class is `@internal`, this does does
not require a deprecation process.
@oliverklee oliverklee force-pushed the cleanup/charset-setter branch from dfd1fb8 to c5f8226 Compare February 16, 2025 09:44
@coveralls
Copy link

coveralls commented Feb 16, 2025

Coverage Status

coverage: 50.747%. remained the same
when pulling c5f8226 on cleanup/charset-setter
into 3e9bc30 on main.

Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

It isn't usual to use an accessor method for a class property within the class itself. The accessor methods are typically provided for use by other classes (and may be marked as internal if only intended for intra-library use). So this doesn't seem right to me.

@oliverklee
Copy link
Collaborator Author

Okay, closing in favor of #941 then.

@oliverklee oliverklee closed this Feb 16, 2025
@oliverklee oliverklee deleted the cleanup/charset-setter branch February 16, 2025 11:01
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.

3 participants