Source code for prog_lang_integration.python.sphinx_example

"""
This is a module for data models.
"""

[docs] class User: """Represents a user in the system.""" def __init__(self, name, email): self.name = name self.email = email
[docs] def greet(self): """Returns a greeting.""" return f"Hello, {self.name}!"
[docs] def get_user_count(): """Returns the total number of users.""" return 100