Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update validation.py #13038

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rasa/shared/utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Text, Dict, List, Optional, Any

from packaging import version
from packaging.version import LegacyVersion
#from packaging.version import LegacyVersion
from pykwalify.errors import SchemaError

from ruamel.yaml.constructor import DuplicateKeyError
Expand Down Expand Up @@ -247,10 +247,10 @@ def validate_training_data_format_version(
if isinstance(version_value, str):
version_value = version_value.strip("\"'")
parsed_version = version.parse(version_value)
latest_version = version.parse(LATEST_TRAINING_DATA_FORMAT_VERSION)
#latest_version = version.parse(LATEST_TRAINING_DATA_FORMAT_VERSION)

if isinstance(parsed_version, LegacyVersion):
raise TypeError
#if isinstance(parsed_version, LegacyVersion):
#raise TypeError

if parsed_version < latest_version:
rasa.shared.utils.io.raise_warning(
Expand Down