- Python
- Backend development
SQLAlchemy: stop calling `session.commit()`
Discover why calling `session.commit()` frequently in SQLAlchemy can lead to issues and learn the best practices for managing transactions effectively.
Discover why calling `session.commit()` frequently in SQLAlchemy can lead to issues and learn the best practices for managing transactions effectively.
Explore the power of `typing.Annotated` in Python, a construct that enhances type hints with additional metadata. Learn how it is revolutionizing libraries like Pydantic, FastAPI, and SQLAlchemy by providing consistent type checking and runtime information.
Discover how type hints can help you write better Python code faster. Learn about the benefits of type annotations, how to use static type checkers like `mypy`, and explore advanced type hinting techniques to improve code quality and reduce errors.