Fix typos in expression.py comment
Fixed two typos in the comment on line 47:
- "operatos" -> "operators"
- "expresion" -> "expression"
The comment now correctly reads: "Redefine operators that would only take a column expression..."
* ⬆ Bump mypy from 1.4.1 to 1.18.1
Bumps [mypy](https://github.com/python/mypy) from 1.4.1 to 1.18.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.4.1...v1.18.1)
---
updated-dependencies:
- dependency-name: mypy
dependency-version: 1.18.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* restrict to latest version that supports python 3.8
* remove unnecssary ignore statement
* add ignore statement
* make ignore statement more specific
* expand on mypy command to debug CI failure
* experiment with from future import
* use the latest mypy for Python 3.9 and up
* fix type of keys to be removed
* annotate origin as Any to avoid type issues
* bump to 1.10.0 only for now
* exclude one particular file from mypy processing
* Try to bump to 1.18.2 again
* attempt to remove the future import again
* add back future import
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: svlandeg <svlandeg@github.com>
* ✨ Add UUID support from sqlalchemy 2.0 update
* ⚰️ Remove dead code for GUID old support
* 📝 Add documentation for UUIDs
* 🧪 Add test for UUIDs field definition and support
* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
* ✏️ Fix prerequisites docs for uuid
* ♻️ Update UUID source examples for consistency
Keep consistency with other examples, functions without parameters, and printing info that shows and explains the UUID results (and can also be tested later)
* 📝 Add source examples for selecting UUIDs with session.get()
* 📝 Re-structure UUID docs
* Explain the concepts at the beggining before using them.
* Explain how UUIDs can be used and trusted.
* Explain why UUIDs could be generated on the code, and how they can be used for distributed systems.
* Explain how UUIDs can prevent information leakage.
* Warn about UUIDs storage size.
* Explain that uuid is part of the standard library.
* Explain how default_factory works.
* Explain that creating an instance would generate a new UUID, before it is sent to the DB. This is included and shown in the example, the UUID is printed before saving to the DB.
* Remove sections about other operations that would behave the same as other fields and don't need additional info from what was explained in previous chapters.
* Add two examples to select using UUIDs, similar to the previous ones, mainly to be able to use them in the tests and ensure that it all works, even when SQLite stores the values as strings but the where() or the session.get() receive UUID values (ensure SQLAlchemy does the conversion correctly for SQLite).
* Add an example terminal run of the code, with comments.
* Simplify the ending to keep only the information that wasn't there before, just the "Learn More" with links.
* ✅ Refactor tests with new printed code, extract and check that UUIDs are used in the right places.
* ✅ Add tests for the new extra UUID examples, for session.get()
* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
* 📝 Rename variable in example for Python 3.7+ for consistency with 3.10+ (I missed that change before)
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>