Skip to content

Commit 2854e56

Browse files
committed
add warning for maintainers about the future annotations here
1 parent 473e87b commit 2854e56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdds/classes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
https://ops.aps.anl.gov/manuals/SDDStoolkit/SDDStoolkitsu2.html
88
"""
99

10+
# Note: do not add 'from __future__ import annotations' in this file,
11+
# as the __post_init__ method relies on the type hints determination
12+
# at runtime and will fail if they are all made strings (in asserts).
13+
1014
import logging
1115
import warnings
1216
from collections.abc import Iterator

0 commit comments

Comments
 (0)