Skip to content

Conversation

@MaxNumerique
Copy link
Contributor

No description provided.

Comment on lines 44 to 45
@classmethod
def get(cls, data_id: str) -> "Data | None":
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@classmethod
def get(cls, data_id: str) -> "Data | None":
@staticmethod
def get(data_id: str) -> "Data | None":

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Les 2 fonctionnent, mais si on choisit d'utiliser @staticmethod, c'est un peu différent : fonction ne dépendant pas de la classe et il faut ré adapter les appels à la méthode get en précisant le model Data en paramètre
Je vais faire un commit avec les changements nécessaires
@BotellaA

@BotellaA BotellaA merged commit a8e29df into next Sep 9, 2025
18 checks passed
@BotellaA BotellaA deleted the fix/unused_params branch September 9, 2025 08:42
@JulienChampagnol
Copy link
Member

🎉 This PR is included in version 5.10.0-rc.9 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@JulienChampagnol
Copy link
Member

🎉 This PR is included in version 5.10.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

4 participants