Skip to content

Commit ea7e318

Browse files
committed
[FLINK-38094][python] Introduce pyflink.__version__
1 parent 647b02f commit ea7e318

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flink-python/pyflink/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
'Python versions prior to 3.6 are not supported for PyFlink [' +
2626
str(sys.version_info) + '].')
2727

28+
from pyflink.version import __version__
29+
2830

2931
def keyword(func):
3032
"""
@@ -50,3 +52,7 @@ def add_version_doc(f, version):
5052
indents = indent_p.findall(original_doc)
5153
indent = ' ' * (min(len(indent) for indent in indents) if indents else 0)
5254
f.__doc__ = original_doc.rstrip() + "\n\n%s.. versionadded:: %s" % (indent, version)
55+
56+
__all__ = [
57+
"__version__",
58+
]

0 commit comments

Comments
 (0)