Skip to content

Conversation

JacekDuszenko
Copy link
Contributor

@JacekDuszenko JacekDuszenko commented Sep 21, 2024

Modernise venv code by adding staticmethod decorator when self is not used.

@JacekDuszenko
Copy link
Contributor Author

@zooba can you take a look at this PR please (and apply skip issue, skip news labels if possible).

@rruuaanng
Copy link
Contributor

rruuaanng commented Sep 21, 2024

@zooba can you take a look at this PR please (and apply skip issue, skip news labels if possible).

Hey JackDuszenko.
Please do not directly cc core developer if it's not necessary.

@rruuaanng
Copy link
Contributor

@zooba can you take a look at this PR please (and apply skip issue, skip news labels if possible).

And, you should added issue-number in title.

self.upgrade_dependencies(context)

def clear_directory(self, path):
@staticmethod
Copy link
Contributor

@rruuaanng rruuaanng Sep 21, 2024

Choose a reason for hiding this comment

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

It seems that's this @staticmethod has no substantial effect. I don't think it's necessary.

@Eclips4
Copy link
Member

Eclips4 commented Sep 21, 2024

Thanks for your contribution, Jacek!

Sorry, but CPython as a rule does not accepts a cosmetic changes, and none of these methods are documented in the venv docs, so I'm going to close this.

@Eclips4 Eclips4 closed this Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants