From 8394979c67e6eed06775c366f7b44a545aed72df Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 5 Jun 2025 20:29:07 +0200 Subject: options: use nicer type annotation T.Container Suggested-by: Dylan Baker Signed-off-by: Paolo Bonzini --- mesonbuild/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/options.py b/mesonbuild/options.py index e999c61ee..0065e9edf 100644 --- a/mesonbuild/options.py +++ b/mesonbuild/options.py @@ -1362,7 +1362,7 @@ class OptionStore: else: self.pending_options[key] = valstr - def accept_as_pending_option(self, key: OptionKey, known_subprojects: T.Optional[T.Union[T.Set[str], T.KeysView[str]]] = None, + def accept_as_pending_option(self, key: OptionKey, known_subprojects: T.Optional[T.Container[str]] = None, first_invocation: bool = False) -> bool: # Fail on unknown options that we can know must exist at this point in time. # Subproject and compiler options are resolved later. -- cgit v1.2.3