



def _is_enabled(self, activity_id: int) -> bool:
"""
Check if an activity is enabled.
Parameters
----------
activity_id : int
The ID of the activity to check.
Returns
-------
bool
True if the activity is enabled, False otherwise.
"""
return activity_id in self.enabled_activities

Je pense à me mettre à l’apprentissage des pompesDîtes juste à quoi vous pensez ^^
Plus de commentaires que de code mdrC'est beau de programmer lol
Python:def _is_enabled(self, activity_id: int) -> bool: """ Check if an activity is enabled. Parameters ---------- activity_id : int The ID of the activity to check. Returns ------- bool True if the activity is enabled, False otherwise. """ return activity_id in self.enabled_activities


