Skip to content

Fix/unused params#180

Merged
BotellaA merged 26 commits into
nextfrom
fix/unused_params
Sep 9, 2025
Merged

Fix/unused params#180
BotellaA merged 26 commits into
nextfrom
fix/unused_params

Conversation

@MaxNumerique

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/opengeodeweb_back/routes/models/blueprint_models.py Outdated
Comment thread src/opengeodeweb_back/data.py Outdated
Comment thread src/opengeodeweb_back/data.py Outdated
Comment on lines +44 to +45
@classmethod
def get(cls, data_id: str) -> "Data | None":

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants