Skip to content

Commit 8c7561b

Browse files
committed
fixing text for typos and English grammer
1 parent 791a6ea commit 8c7561b

24 files changed

Lines changed: 34 additions & 34 deletions

AUTHORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Authors in order of the timeline of their contributions:
3434
- Stian Jensen [stianjensen](https://github.com/stianjensen) for improving ignoring of NoneType in diff
3535
- Florian Klien [flowolf](https://github.com/flowolf) for adding math_epsilon
3636
- Tim Klein [timjklein36](https://github.com/timjklein36) for retaining the order of multiple dictionary items added via Delta.
37-
- Wilhelm Schürmann[wbsch](https://github.com/wbsch) for fixing the typo with yml files.
37+
- Wilhelm Schürmann [wbsch](https://github.com/wbsch) for fixing the typo with yml files.
3838
- [lyz-code](https://github.com/lyz-code) for adding support for regular expressions in DeepSearch and strict_checking feature in DeepSearch.
3939
- [dtorres-sf](https://github.com/dtorres-sf) for adding the option for custom compare function
4040
- Tony Wang [Tony-Wang](https://github.com/Tony-Wang) for bugfix: verbose_level==0 should disable values_changes.

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
- Added support for memoryview serialization
3737
- Added support for bytes serialization (non-UTF8 compatible)
3838
- Fixed bug where group_by with numbers would leak type info into group path reports
39-
- Fixed bug in `_get_clean_to_keys_mapping without` explicit significant digits
39+
- Fixed bug in `_get_clean_to_keys_mapping` without explicit significant digits
4040
- Added support for python dict key serialization
4141
- Enhanced support for IP address serialization with safe module imports
4242
- Added development tooling improvements (pyright config, .envrc example)
@@ -45,7 +45,7 @@
4545
- v8-5-0
4646
- Updating deprecated pydantic calls
4747
- Switching to pyproject.toml
48-
- Fix for moving nested tables when using iterable_compare_func. by
48+
- Fix for moving nested tables when using iterable_compare_func.
4949
- Fix recursion depth limit when hashing numpy.datetime64
5050
- Moving from legacy setuptools use to pyproject.toml
5151

@@ -231,7 +231,7 @@
231231
- v1-0-2: Checking for ImmutableMapping type instead of dict
232232
- v1-0-1: Better ignore order support
233233
- v1-0-0: Restructuring output to make it more useful. This is NOT backward compatible.
234-
- v0-6-1: Fixiing iterables with unhashable when order is ignored
234+
- v0-6-1: Fixing iterables with unhashable when order is ignored
235235
- v0-6-0: Adding unicode support
236236
- v0-5-9: Adding decimal support
237237
- v0-5-8: Adding ignore order of unhashables support

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Please take a look at the [CHANGELOG](CHANGELOG.md) file.
138138
1. Please make your PR against the dev branch
139139
2. Please make sure that your PR has tests. Since DeepDiff is used in many sensitive data driven projects, we strive to maintain around 100% test coverage on the code.
140140

141-
Please run `pytest --cov=deepdiff --runslow` to see the coverage report. Note that the `--runslow` flag will run some slow tests too. In most cases you only want to run the fast tests which so you wont add the `--runslow` flag.
141+
Please run `pytest --cov=deepdiff --runslow` to see the coverage report. Note that the `--runslow` flag will run some slow tests too. In most cases you only want to run the fast tests which so you won't add the `--runslow` flag.
142142

143143
Or to see a more user friendly version, please run: `pytest --cov=deepdiff --cov-report term-missing --runslow`.
144144

deepdiff/deephash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def get(self, key: Any, default: Any = None, extract_index: Optional[int] = 0) -
349349
"""
350350
Get method for the hashes dictionary.
351351
It can extract the hash for a given key that is already calculated when extract_index=0
352-
or the count of items that went to building the object whenextract_index=1.
352+
or the count of items that went to building the object when extract_index=1.
353353
"""
354354
return self.get_key(self.hashes, key, default=default, extract_index=extract_index,
355355
ignore_numeric_type_changes=self.ignore_numeric_type_changes)
@@ -360,7 +360,7 @@ def get_key(hashes: Dict[Any, Any], key: Any, default: Any = None, extract_index
360360
"""
361361
get_key method for the hashes dictionary.
362362
It can extract the hash for a given key that is already calculated when extract_index=0
363-
or the count of items that went to building the object whenextract_index=1.
363+
or the count of items that went to building the object when extract_index=1.
364364
"""
365365
try:
366366
result = DeepHash._getitem(hashes, key, extract_index=extract_index,

deepdiff/distance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _get_rough_distance(self: "DistanceProtocol"):
4545
Gives a numeric value for the distance of t1 and t2 based on how many operations are needed to convert
4646
one to the other.
4747
48-
This is a similar concept to the Levenshtein Edit Distance but for the structured data and is it is designed
48+
This is a similar concept to the Levenshtein Edit Distance but for the structured data and it is designed
4949
to be between 0 and 1.
5050
5151
A distance of zero means the objects are equal and a distance of 1 is very far.

deepdiff/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ def cartesian_product(a: Iterable[Tuple[Any, ...]], b: Iterable[Any]) -> Iterato
496496

497497
def cartesian_product_of_shape(dimentions: Iterable[int], result: Optional[Tuple[Tuple[Any, ...], ...]] = None) -> Iterator[Tuple[Any, ...]]:
498498
"""
499-
Cartesian product of a dimentions iterable.
499+
Cartesian product of a dimensions iterable.
500500
This is mainly used to traverse Numpy ndarrays.
501501
502-
Each array has dimentions that are defines in ndarray.shape
502+
Each array has dimensions that are defined in ndarray.shape
503503
"""
504504
if result is None:
505505
result = ((),) # a tuple with an empty tuple

deepdiff/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ def stringify_param(self, force: Optional[str] = None) -> Optional[str]:
919919
Will return '(unrepresentable)' instead of None if there is no string representation
920920
921921
TODO: stringify_param has issues with params that when converted to string via repr,
922-
it is not straight forward to turn them back into the original object.
922+
it is not straightforward to turn them back into the original object.
923923
Although repr is meant to be able to reconstruct the original object but for complex objects, repr
924924
often does not recreate the original object.
925925
Perhaps we should log that the repr reconstruction failed so the user is aware.

docs/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DeepDiff Changelog
4343
- Added support for bytes serialization (non-UTF8 compatible)
4444
- Fixed bug where group_by with numbers would leak type info into group
4545
path reports
46-
- Fixed bug in ``_get_clean_to_keys_mapping without`` explicit
46+
- Fixed bug in ``_get_clean_to_keys_mapping`` without explicit
4747
significant digits
4848
- Added support for python dict key serialization
4949
- Enhanced support for IP address serialization with safe module imports
@@ -328,7 +328,7 @@ DeepDiff Changelog
328328
- v1-0-2: Checking for ImmutableMapping type instead of dict
329329
- v1-0-1: Better ignore order support
330330
- v1-0-0: Restructuring output to make it more useful. This is NOT backward compatible.
331-
- v0-6-1: Fixiing iterables with unhashable when order is ignored
331+
- v0-6-1: Fixing iterables with unhashable when order is ignored
332332
- v0-6-0: Adding unicode support
333333
- v0-5-9: Adding decimal support
334334
- v0-5-8: Adding ignore order for unhashables support

docs/commandline.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Imagine if we have the following files:
238238
:header-rows: 1
239239
240240
.. csv-table:: t2.csv
241-
:file: ../tests/fixtures/t1.csv
241+
:file: ../tests/fixtures/t2.csv
242242
:header-rows: 1
243243
244244

docs/custom.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Define A Custom Operator
178178
------------------------
179179

180180

181-
To define an custom operator, you just need to inherit *BaseOperator* or *BaseOperatorPlus*.
181+
To define a custom operator, you just need to inherit *BaseOperator* or *BaseOperatorPlus*.
182182

183183
- *BaseOperatorPlus* is our new base operator that can be subclassed and provides the structure to build any custom operator.
184184
- *BaseOperator* is our older base class for creating custom operators. It was designed mainly for simple string based regex comparison.

0 commit comments

Comments
 (0)