Skip to content

Commit

Permalink
Require Python 3.7
Browse files Browse the repository at this point in the history
Fix #43
  • Loading branch information
albertz committed Oct 27, 2021
1 parent a41a9b3 commit 50f42c3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
"""
This is intended to be used for the RETURNN :func:`import_` mechanism.
Common building blocks for RETURNN,
such as models or networks,
network definition code,
datasets, etc.
"""

import sys as _sys

# We require at least Python 3.7.
# See https://github.com/rwth-i6/returnn_common/issues/43.
# Current features we use:
# - Our code expects that the order of dict is deterministic, or even insertion order specifically.
# - Type annotations.
assert _sys.version_info[:2] >= (3, 7)

0 comments on commit 50f42c3

Please sign in to comment.