From fe25bcd789940561f83e2eb111619aeaf7b4f911 Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Tue, 27 Aug 2024 11:46:19 -0500 Subject: [PATCH] Add type hints to `warn` in `deprecations.py` The `warn` method id `deprecations.py` wasn't typed. Because of this, calling to the method elsewhere would raise typing errors of calling to an "untyped method" --- core/dbt/deprecations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/deprecations.py b/core/dbt/deprecations.py index 114af126ea0..08ff8862c65 100644 --- a/core/dbt/deprecations.py +++ b/core/dbt/deprecations.py @@ -138,7 +138,7 @@ def cb(): return cb -def warn(name, *args, **kwargs): +def warn(name: str, *args, **kwargs) -> None: if name not in deprecations: # this should (hopefully) never happen raise RuntimeError("Error showing deprecation warning: {}".format(name))