Skip to content

Commit

Permalink
add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thigm85 committed Oct 3, 2022
1 parent 1a91da0 commit 27f3cd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vespa/query.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

import warnings
from typing import Callable, List, Optional, Dict

warnings.warn(
"the vespa.query module is deprecated, use learntorank.query module "
"from the learntorank library instead.",
DeprecationWarning,
)

#
# Query property
Expand Down

0 comments on commit 27f3cd1

Please sign in to comment.