fix(referenzen): assign unique, matching images to all reference projects

This commit is contained in:
2026-06-19 21:21:50 +02:00
parent fda2944e5a
commit d1387d2685
1748 changed files with 309601 additions and 12 deletions

View File

@@ -0,0 +1,20 @@
import functools
# from jaraco.functools 3.5
def pass_none(func):
"""
Wrap func so it's not called if its first param is None
>>> print_text = pass_none(print)
>>> print_text('text')
text
>>> print_text(None)
"""
@functools.wraps(func)
def wrapper(param, *args, **kwargs):
if param is not None:
return func(param, *args, **kwargs)
return wrapper