mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
5 lines
244 B
Python
5 lines
244 B
Python
def foo():
|
|
return {field.key: field for key, field in inspect.getmembers(instance)
|
|
if isinstance(field, QueryableAttribute)
|
|
and isinstance(field.property, ColumnProperty)
|
|
or field.foreign_keys} |