options: fix imports

- group imports properly
- dont import from typing and import typing
pull/13609/head
Dylan Baker 3 months ago committed by Eli Schwartz
parent d353219e17
commit cd0981bb3c
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 7
      mesonbuild/options.py

@ -7,6 +7,7 @@ from collections import OrderedDict
from itertools import chain
from functools import total_ordering
import argparse
import typing as T
from .mesonlib import (
HoldableObject,
@ -24,12 +25,8 @@ from .mesonlib import (
listify_array_value,
MachineChoice,
)
from . import mlog
import typing as T
from typing import ItemsView
DEFAULT_YIELDING = False
# Can't bind this near the class method it seems, sadly.
@ -755,7 +752,7 @@ class OptionStore:
def values(self):
return self.d.values()
def items(self) -> ItemsView['OptionKey', 'UserOption[T.Any]']:
def items(self) -> T.ItemsView['OptionKey', 'UserOption[T.Any]']:
return self.d.items()
# FIXME: this method must be deleted and users moved to use "add_xxx_option"s instead.

Loading…
Cancel
Save