diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-04-21 16:55:44 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-04-21 16:55:44 +0000 |
| commit | 6aefaaa110fc239571c043fad1c8a6a4e1de4368 (patch) | |
| tree | 0aab7aeee7c7e97b051086a7236741c5f9ba0555 /lib/sqlalchemy/dialects/postgresql/base.py | |
| parent | 57286c3137cbb572a03fbec9bf5c428b76804d4a (diff) | |
| parent | 408c936c77c6aaeceab0e0b001ed745ceb9d19d4 (diff) | |
| download | sqlalchemy-6aefaaa110fc239571c043fad1c8a6a4e1de4368.tar.gz | |
Merge "Implement UUID.python_type" into main
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 6c3bc4e7c..5d1298cf7 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1815,6 +1815,10 @@ class UUID(sqltypes.TypeEngine): return process + @property + def python_type(self): + return _python_UUID if self.as_uuid else str + PGUuid = UUID |
