Skip to content

Commit c28bf74

Browse files
authored
Fix typos (#1288)
1 parent 037b75d commit c28bf74

13 files changed

+15
-15
lines changed

ChangeLog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ Release date: 2020-04-27
890890

891891
* Added transform for ``scipy.gaussian``
892892

893-
* Add suport for inferring properties.
893+
* Add support for inferring properties.
894894

895895
* Added a brain for ``responses``
896896

@@ -2737,7 +2737,7 @@ Release date: 2009-12-18
27372737
bad inference of function call)
27382738

27392739
* fix #18953: inference fails with augmented assignment (special case for augmented
2740-
assignement in infer_ass method)
2740+
assignment in infer_ass method)
27412741

27422742
* fix #13944: false positive for class/instance attributes (Instance.getattr
27432743
should return assign nodes on instance classes as well as instance.

astroid/brain/brain_ctypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Inside the ctypes module, the value class is defined inside
55
the C coded module _ctypes.
6-
Thus astroid doesn't know that the value member is a bultin type
6+
Thus astroid doesn't know that the value member is a builtin type
77
among float, int, bytes or str.
88
"""
99
import sys

astroid/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _post_build(self, module, encoding):
165165
return module
166166

167167
def _data_build(self, data, modname, path):
168-
"""Build tree node from data and add some informations"""
168+
"""Build tree node from data and add some information"""
169169
try:
170170
node, parser_module = _parse_string(data, type_comments=True)
171171
except (TypeError, ValueError, SyntaxError) as exc:

astroid/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __init__(self, path=None, nodes_inferred=None):
9595
@property
9696
def nodes_inferred(self):
9797
"""
98-
Number of nodes inferred in this context and all its clones/decendents
98+
Number of nodes inferred in this context and all its clones/descendents
9999
100100
Wrap inner value in a mutable cell to allow for mutating a class
101101
variable in the presence of __slots__

astroid/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ def _cached_generator(func, instance, args, kwargs, _cache={}): # noqa: B006
10541054

10551055
# When inferring a property, we instantiate a new `objects.Property` object,
10561056
# which in turn, because it inherits from `FunctionDef`, sets itself in the locals
1057-
# of the wrapping frame. This means that everytime we infer a property, the locals
1057+
# of the wrapping frame. This means that every time we infer a property, the locals
10581058
# are mutated with a new instance of the property. This is why we cache the result
10591059
# of the function's inference.
10601060
@_cached_generator

astroid/nodes/node_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ def __init__(
880880
self.args: typing.Optional[typing.List[AssignName]]
881881
"""The names of the required arguments.
882882
883-
Can be None if the assosciated function does not have a retrievable
883+
Can be None if the associated function does not have a retrievable
884884
signature and the arguments are therefore unknown.
885885
This happens with builtin functions implemented in C.
886886
"""

astroid/nodes/scoped_nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ def str_const(node):
841841
def public_names(self):
842842
"""The list of the names that are publicly available in this module.
843843
844-
:returns: The list of publc names.
844+
:returns: The list of public names.
845845
:rtype: list(str)
846846
"""
847847
return [name for name in self.keys() if not name.startswith("_")]

doc/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ it for ``astroid.Call``, which is the node for function calls, so this now becom
7777
The next step would be to do the actual transformation, but before dwelving
7878
into that, let's see some important concepts that nodes in astroid have:
7979

80-
* they have a parent. Everytime we build a node, we have to provide a parent
80+
* they have a parent. Every time we build a node, we have to provide a parent
8181

8282
* most of the time they have a line number and a column offset as well
8383

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ confidence=
8484
# can either give multiple identifiers separated by comma (,) or put this
8585
# option multiple times (only on the command line, not in the configuration
8686
# file where it should appear only once).You can also use "--disable=all" to
87-
# disable everything first and then reenable specific checks. For example, if
87+
# disable everything first and then re-enable specific checks. For example, if
8888
# you want to run only the similarities checker, you can use "--disable=all
8989
# --enable=similarities". If you want to run only the classes checker, but have
9090
# no Warning level messages displayed, use"--disable=all --enable=classes

tests/unittest_brain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,7 +2386,7 @@ class Bar(object):
23862386
)
23872387

23882388
def test_isinstance_str_true(self) -> None:
2389-
"""Make sure isinstance can check bultin str types"""
2389+
"""Make sure isinstance can check builtin str types"""
23902390
assert _get_result("isinstance('a', str)") == "True"
23912391

23922392
def test_isinstance_str_false(self) -> None:
@@ -2847,7 +2847,7 @@ def test_infer_dict_from_keys() -> None:
28472847
assert isinstance(inferred, astroid.Dict)
28482848
assert inferred.items == []
28492849

2850-
# Test inferrable values
2850+
# Test inferable values
28512851

28522852
# from a dictionary's keys
28532853
from_dict = astroid.extract_node(

0 commit comments

Comments
 (0)