Closed dennisvang closed 8 months ago
Always return a dict from TargetMeta.custom and custom_internal (instead optional dict).
dict
TargetMeta.custom
custom_internal
This breaks any code that explicitly relies on the possibility that custom metadata is None, for example:
None
if my_meta.custom is None: # this will never happen... ...
Code that simply checks for custom metadata, as in if my_meta.custom: ..., or if my_meta.custom is not None: ..., is not affected.
if my_meta.custom: ...
if my_meta.custom is not None: ...
fixes #131
Always return a
dict
fromTargetMeta.custom
andcustom_internal
(instead optionaldict
).This breaks any code that explicitly relies on the possibility that custom metadata is
None
, for example:Code that simply checks for custom metadata, as in
if my_meta.custom: ...
, orif my_meta.custom is not None: ...
, is not affected.fixes #131