Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Commit 82afc12

Browse files
committed
Fix typos
1 parent 0e841ce commit 82afc12

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

coreapi/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _key_sorting(item):
4444

4545
# The field class, as used by Link objects:
4646

47-
# NOTE: 'type', 'description' and 'examaple' are now deprecated,
47+
# NOTE: 'type', 'description' and 'example' are now deprecated,
4848
# in favor of 'schema'.
4949
Field = namedtuple('Field', ['name', 'required', 'location', 'schema', 'description', 'type', 'example'])
5050
Field.__new__.__defaults__ = (False, '', None, None, None, None)

coreapi/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def negotiate_encoder(encoders, accept=None):
237237
raise exceptions.NoCodecAvailable(msg)
238238

239239

240-
# Validation utilities. Used to ensure that we get consitent validation
240+
# Validation utilities. Used to ensure that we get consistent validation
241241
# exceptions when invalid types are passed as a parameter, rather than
242242
# an exception occuring when the request is made.
243243

runtests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ def flake8_main(args):
3535

3636

3737
def report_coverage(cov, fail_if_not_100=False):
38-
precent_covered = cov.report(
38+
percent_covered = cov.report(
3939
file=NullFile(), **COVERAGE_OPTIONS
4040
)
41-
if precent_covered == 100:
41+
if percent_covered == 100:
4242
print('100% coverage')
4343
return
4444
if fail_if_not_100:

tests/test_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def error():
5050

5151
def _dedent(string):
5252
"""
53-
Convience function for dedenting multiline strings,
53+
Convenience function for dedenting multiline strings,
5454
for string comparison purposes.
5555
"""
5656
lines = string.splitlines()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy