Skip to content

Commit

Permalink
Merge pull request gtalarico#390 from mesozoic/anyfield
Browse files Browse the repository at this point in the history
Export orm.fields.AnyField
  • Loading branch information
mesozoic authored Sep 8, 2024
2 parents ca7c9d6 + 3dd937d commit 5c9e79e
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pyairtable/orm/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,20 +1474,27 @@ class CreatedTimeField(RequiredDatetimeField):
# with open(cog.inFile) as fp:
# src = fp.read()
#
# classes = re.findall(r"class ((?:[A-Z]\w+)?Field)", src)
# classes = re.findall(r"^class ((?:[A-Z]\w+)?Field)\b", src, re.MULTILINE)
# constants = re.findall(r"^(?!T_)([A-Z][A-Z_]+)(?:: [^=]+)? = ", src, re.MULTILINE)
# aliases = re.findall(r"^(\w+): TypeAlias\b", src, re.MULTILINE)
# extras = ["LinkSelf"]
# names = sorted(classes) + constants + extras
# names = constants + sorted(classes + aliases + extras)
#
# cog.outl("\n\n__all__ = [")
# for name in names:
# cog.outl(f' "{name}",')
# if not name.startswith("_"):
# cog.outl(f' "{name}",')
# cog.outl("]")
# [[[out]]]


__all__ = [
"ALL_FIELDS",
"READONLY_FIELDS",
"FIELD_TYPES_TO_CLASSES",
"FIELD_CLASSES_TO_TYPES",
"AITextField",
"AnyField",
"AttachmentsField",
"AutoNumberField",
"BarcodeField",
Expand All @@ -1509,6 +1516,7 @@ class CreatedTimeField(RequiredDatetimeField):
"LastModifiedByField",
"LastModifiedTimeField",
"LinkField",
"LinkSelf",
"LookupField",
"ManualSortField",
"MultipleCollaboratorsField",
Expand Down Expand Up @@ -1541,13 +1549,8 @@ class CreatedTimeField(RequiredDatetimeField):
"SingleLinkField",
"TextField",
"UrlField",
"ALL_FIELDS",
"READONLY_FIELDS",
"FIELD_TYPES_TO_CLASSES",
"FIELD_CLASSES_TO_TYPES",
"LinkSelf",
]
# [[[end]]] (checksum: 3c6f5447f45e74c170ec3378272c6dd3)
# [[[end]]] (checksum: 87b0a100c9e30523d9aab8cc935c7960)


# Delayed import to avoid circular dependency
Expand Down

0 comments on commit 5c9e79e

Please sign in to comment.