@@ -132,7 +132,7 @@ def _get_external(module_name: str, access_path: Sequence[str]):
132132
133133 Raises:
134134 * `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
136136 """
137137 member_type = sys .modules [module_name ]
138138 for attr in access_path :
@@ -235,7 +235,7 @@ def can_get_attr(self, value, attr):
235235 accept = has_original_attr and has_original_attribute
236236
237237 if accept :
238- # We still need to check for overriden properties.
238+ # We still need to check for overridden properties.
239239
240240 value_class = type (value )
241241 if not hasattr (value_class , attr ):
@@ -332,7 +332,7 @@ class EvaluationContext(NamedTuple):
332332 evaluation : Literal [
333333 "forbidden" , "minimal" , "limited" , "unsafe" , "dangerous"
334334 ] = "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.
336336 #: Useful for evaluating ``:-1, 'col'`` in ``df[:-1, 'col']``.
337337 in_subscript : bool = False
338338
@@ -373,7 +373,7 @@ def guarded_eval(code: str, context: EvaluationContext):
373373 # getitem at all, for example it fails on simple `[0][1]`
374374
375375 if context .in_subscript :
376- # syntatic sugar for ellipsis (:) is only available in susbcripts
376+ # syntactic sugar for ellipsis (:) is only available in subscripts
377377 # so we need to trick the ast parser into thinking that we have
378378 # a subscript, but we need to be able to later recognise that we did
379379 # it so we can ignore the actual __getitem__ operation
0 commit comments