| 4324 | self.value = value |
| 4325 | |
| 4326 | class MyBool(TypeDecorator): |
| 4327 | impl = Boolean(create_constraint=True) |
| 4328 | cache_ok = True |
| 4329 | |
| 4330 | # future method |
| 4331 | def process_literal_param(self, value, dialect): |
| 4332 | return value.value |
| 4333 | |
| 4334 | def process_bind_param(self, value, dialect): |
| 4335 | return value.value |
| 4336 | |
| 4337 | m = MetaData() |
| 4338 | t1 = Table("t", m, Column("x", MyBool())) |