Skip to content

Commit

Permalink
Make UNDEFINED falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Aug 12, 2024
1 parent d2ade1a commit 5d3c83b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ogc/na/annotate_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@

CURIE_TERMS = '@id', '@type', '@index'

UNDEFINED = object()
class Undefined:

def __bool__(self):
return False

UNDEFINED = Undefined()

context_term_cache = LRUCache(maxsize=20)
requests_session = requests_cache.CachedSession('ogc.na.annotate_schema', backend='memory', expire_after=180)
Expand Down

0 comments on commit 5d3c83b

Please sign in to comment.