From c321fdec74afc29608e743005830542471fde6aa Mon Sep 17 00:00:00 2001 From: Zhiwei Liang <121905282+zliang-akamai@users.noreply.github.com> Date: Thu, 14 Mar 2024 15:02:49 -0400 Subject: [PATCH] Add return type hint for `get_watcher` function Co-authored-by: Lena Garber <114949949+lgarber-akamai@users.noreply.github.com> --- linode_metadata/metadata_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linode_metadata/metadata_client.py b/linode_metadata/metadata_client.py index ad1df81..7e1ce3e 100644 --- a/linode_metadata/metadata_client.py +++ b/linode_metadata/metadata_client.py @@ -233,7 +233,7 @@ def _user_agent(self): def get_watcher( self, default_poll_interval: Optional[Union[timedelta, float, int]] = None, - ): + ) -> Union[AsyncMetadataWatcher, MetadataWatcher]: """ Get a watcher instance with this metadata client.