Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pydantic_extra_types/isbn.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""The `pydantic_extra_types.isbn` module provides functionality to recieve and validate ISBN.
"""The `pydantic_extra_types.isbn` module provides functionality to receive and validate ISBN.

ISBN (International Standard Book Number) is a numeric commercial book identifier which is intended to be unique. This module provides a ISBN type for Pydantic models.
ISBN (International Standard Book Number) is a numeric commercial book identifier which is intended to be unique. This module provides an ISBN type for Pydantic models.
"""

from __future__ import annotations
Expand All @@ -13,7 +13,7 @@


def isbn10_digit_calc(isbn: str) -> str:
"""Calc a ISBN-10 last digit from the provided str value. More information of validation algorithm on [Wikipedia](https://en.wikipedia.org/wiki/ISBN#Check_digits)
"""Calculate the ISBN-10 check digit from the provided str value. More information on the validation algorithm on [Wikipedia](https://en.wikipedia.org/wiki/ISBN#Check_digits)

Args:
isbn: The str value representing the ISBN in 10 digits.
Expand All @@ -28,7 +28,7 @@ def isbn10_digit_calc(isbn: str) -> str:


def isbn13_digit_calc(isbn: str) -> str:
"""Calc a ISBN-13 last digit from the provided str value. More information of validation algorithm on [Wikipedia](https://en.wikipedia.org/wiki/ISBN#Check_digits)
"""Calc a ISBN-13 last digit from the provided str value. More information on the validation algorithm on [Wikipedia](https://en.wikipedia.org/wiki/ISBN#Check_digits)

Args:
isbn: The str value representing the ISBN in 13 digits.
Expand Down