]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add type annotations to `postgresql.json`
authorDenis Laxalde <denis@laxalde.org>
Tue, 4 Mar 2025 20:28:47 +0000 (15:28 -0500)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 5 Mar 2025 19:43:28 +0000 (19:43 +0000)
commitc7f4e8b9370487135777677eaf4d8992825c24aa
tree167eade31b077d72ad02de0adb145831899b6377
parent9b9e1e127f77618e84dee233b3d4beaae1f4e50d
Add type annotations to `postgresql.json`

(Same as https://github.com/sqlalchemy/sqlalchemy/pull/12384, but for `json`.)

### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

This pull request is:

- [ ] A documentation / typographical / small typing error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [x] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

Related to #6810

**Have a nice day!**

Closes: #12391
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12391
Pull-request-sha: 0a43724f1737a4519629a13e2d6bf33f7aecb9ac

Change-Id: I2a0e88effccf351de7fa72389ee646532ce9cf69
lib/sqlalchemy/dialects/postgresql/json.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/type_api.py