##// END OF EJS Templates
Fix typos
Andrew Kreimer -
Show More
@@ -159,7 +159,7 b' By default results from all matchers are combined, in the order determined by'
159 159 their priority. Matchers can request to suppress results from subsequent
160 160 matchers by setting ``suppress`` to ``True`` in the ``MatcherResult``.
161 161
162 When multiple matchers simultaneously request surpression, the results from of
162 When multiple matchers simultaneously request suppression, the results from of
163 163 the matcher with higher priority will be returned.
164 164
165 165 Sometimes it is desirable to suppress most but not all other matchers;
@@ -2651,7 +2651,7 b' class IPCompleter(Completer):'
2651 2651 )
2652 2652 can_close_quote = can_close_quote and self.auto_close_dict_keys
2653 2653
2654 # fast path if closing qoute should be appended but not suffix is allowed
2654 # fast path if closing quote should be appended but not suffix is allowed
2655 2655 if not can_close_quote and not can_close_bracket and closing_quote:
2656 2656 return [leading + k for k in matches]
2657 2657
@@ -167,7 +167,7 b' def is_possible_submodule(module, attr):'
167 167 try:
168 168 obj = getattr(module, attr)
169 169 except AttributeError:
170 # Is possilby an unimported submodule
170 # Is possibly an unimported submodule
171 171 return True
172 172 except TypeError:
173 173 # https://github.com/ipython/ipython/issues/9678
@@ -19,7 +19,7 b' Global Configuration'
19 19 --------------------
20 20
21 21 The IPython debugger will by read the global ``~/.pdbrc`` file.
22 That is to say you can list all comands supported by ipdb in your `~/.pdbrc`
22 That is to say you can list all commands supported by ipdb in your `~/.pdbrc`
23 23 configuration file, to globally configure pdb.
24 24
25 25 Example::
@@ -177,7 +177,7 b' def BdbQuit_excepthook(et, ev, tb, excepthook=None):'
177 177 parameter.
178 178 """
179 179 raise ValueError(
180 "`BdbQuit_excepthook` is deprecated since version 5.1. It is still arround only because it is still imported by ipdb.",
180 "`BdbQuit_excepthook` is deprecated since version 5.1. It is still around only because it is still imported by ipdb.",
181 181 )
182 182
183 183
@@ -132,7 +132,7 b' def _get_external(module_name: str, access_path: Sequence[str]):'
132 132
133 133 Raises:
134 134 * `KeyError` if module is removed not found, and
135 * `AttributeError` if acess path does not match an exported object
135 * `AttributeError` if access path does not match an exported object
136 136 """
137 137 member_type = sys.modules[module_name]
138 138 for attr in access_path:
@@ -235,7 +235,7 b' class SelectivePolicy(EvaluationPolicy):'
235 235 accept = has_original_attr and has_original_attribute
236 236
237 237 if accept:
238 # We still need to check for overriden properties.
238 # We still need to check for overridden properties.
239 239
240 240 value_class = type(value)
241 241 if not hasattr(value_class, attr):
@@ -332,7 +332,7 b' class EvaluationContext(NamedTuple):'
332 332 evaluation: Literal[
333 333 "forbidden", "minimal", "limited", "unsafe", "dangerous"
334 334 ] = "forbidden"
335 #: Whether the evalution of code takes place inside of a subscript.
335 #: Whether the evaluation of code takes place inside of a subscript.
336 336 #: Useful for evaluating ``:-1, 'col'`` in ``df[:-1, 'col']``.
337 337 in_subscript: bool = False
338 338
@@ -373,7 +373,7 b' def guarded_eval(code: str, context: EvaluationContext):'
373 373 # getitem at all, for example it fails on simple `[0][1]`
374 374
375 375 if context.in_subscript:
376 # syntatic sugar for ellipsis (:) is only available in susbcripts
376 # syntactic sugar for ellipsis (:) is only available in subscripts
377 377 # so we need to trick the ast parser into thinking that we have
378 378 # a subscript, but we need to be able to later recognise that we did
379 379 # it so we can ignore the actual __getitem__ operation
@@ -97,7 +97,7 b' def num_ini_spaces(s):'
97 97 """
98 98 warnings.warn(
99 99 "`num_ini_spaces` is Pending Deprecation since IPython 8.17."
100 "It is considered fro removal in in future version. "
100 "It is considered for removal in in future version. "
101 101 "Please open an issue if you believe it should be kept.",
102 102 stacklevel=2,
103 103 category=PendingDeprecationWarning,
@@ -1627,7 +1627,7 b' class InteractiveShell(SingletonConfigurable):'
1627 1627 Returns
1628 1628 -------
1629 1629 parts_ok: bool
1630 wether we were properly able to parse parts.
1630 whether we were properly able to parse parts.
1631 1631 parts: list of str
1632 1632 extracted parts
1633 1633
@@ -5,7 +5,7 b' with ast-transformers it is not easy to directly manipulate ast.'
5 5
6 6
7 7 IPython has pre-code and post-code hooks, but are ran from within the IPython
8 machinery so may be inappropriate, for example for performance mesurement.
8 machinery so may be inappropriate, for example for performance measurement.
9 9
10 10 This module give you tools to simplify this, and expose 2 classes:
11 11
@@ -460,7 +460,7 b' class Inspector(Colorable):'
460 460
461 461 mime_hooks = traitlets.Dict(
462 462 config=True,
463 help="dictionary of mime to callable to add informations into help mimebundle dict",
463 help="dictionary of mime to callable to add information into help mimebundle dict",
464 464 ).tag(config=True)
465 465
466 466 def __init__(
@@ -528,7 +528,7 b' def _list_matplotlib_backends_and_gui_loops() -> list[str]:'
528 528
529 529
530 530 # Matplotlib and IPython do not always use the same gui framework name.
531 # Always use the approprate one of these conversion functions when passing a
531 # Always use the appropriate one of these conversion functions when passing a
532 532 # gui framework name to/from Matplotlib.
533 533 def _convert_gui_to_matplotlib(gui: str | None) -> str | None:
534 534 if gui and gui.lower() == "osx":
General Comments 0
You need to be logged in to leave comments. Login now