Skip to content

Commit 8394979

Browse files
bonzinijpakkane
authored andcommitted
options: use nicer type annotation T.Container
Suggested-by: Dylan Baker <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 3317afe commit 8394979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ def initialize_from_top_level_project_call(self,
13621362
else:
13631363
self.pending_options[key] = valstr
13641364

1365-
def accept_as_pending_option(self, key: OptionKey, known_subprojects: T.Optional[T.Union[T.Set[str], T.KeysView[str]]] = None,
1365+
def accept_as_pending_option(self, key: OptionKey, known_subprojects: T.Optional[T.Container[str]] = None,
13661366
first_invocation: bool = False) -> bool:
13671367
# Fail on unknown options that we can know must exist at this point in time.
13681368
# Subproject and compiler options are resolved later.

0 commit comments

Comments
 (0)