def load_dialect_impl(self, dialect): if dialect.name == 'postgresql': # Use the native JSON type. return dialect.type_descriptor(_JSONB()) else: return dialect.type_descriptor(self.impl)