Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add types-=decorator for typing
  • Loading branch information
Carreau committed Feb 18, 2026
commit 31613ebd5988905865185f080fa14e8992143a02
3 changes: 2 additions & 1 deletion IPython/core/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from typing import Tuple, Optional, TYPE_CHECKING
from collections.abc import Iterable
import typing
import typing as t
from typing import cast
from warnings import warn
from weakref import ref, WeakSet
Expand Down Expand Up @@ -1132,7 +1133,7 @@ def run(self) -> None:
if hm() is not None:
self.db = sqlite3.connect(
str(hm().hist_file), # type: ignore [union-attr]
**cast(dict[str, Any], hm().connection_options), # type: ignore [union-attr]
**cast(dict[str, t.Any], hm().connection_options), # type: ignore [union-attr]
)
while True:
self.save_flag.wait()
Expand Down
2 changes: 1 addition & 1 deletion IPython/core/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def parse_options(
argv = arg_split(arg_str, posix, strict) # type: ignore[no-untyped-call]
# Do regular option processing
try:
opts, args = getopt(argv, opt_str, long_opts) # type: ignore[arg-type]
opts, args = getopt(argv, opt_str, long_opts)
except GetoptError as e:
raise UsageError(
'%s (allowed: "%s"%s)'
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ matplotlib = [
all = [
"ipython[doc,matplotlib,terminal,test,test_extra]",
"argcomplete>=3.0",
"types-decorator"
]


Expand Down
Loading