Skip to content

Commit 6047ee0

Browse files
committed
Minor doc rendering improvements
1 parent 3311e1b commit 6047ee0

File tree

7 files changed

+18
-37
lines changed

7 files changed

+18
-37
lines changed

docs/index.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,28 @@
88

99
.. include:: ../README.rst
1010

11-
=======
12-
Modules
13-
=======
11+
======
12+
Module
13+
======
1414

1515
.. automodule:: maxminddb
1616
:members:
1717
:undoc-members:
1818
:show-inheritance:
1919

20+
======
21+
Errors
22+
======
23+
2024
.. automodule:: maxminddb.errors
2125
:members:
2226
:undoc-members:
2327
:show-inheritance:
2428

29+
===============
30+
Database Reader
31+
===============
32+
2533
.. automodule:: maxminddb.reader
2634
:members:
2735
:undoc-members:

maxminddb/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Module for reading MaxMind DB files."""
12
# pylint:disable=C0111
23
import os
34
from typing import IO, AnyStr, Union, cast

maxminddb/decoder.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
"""
2-
maxminddb.decoder
3-
~~~~~~~~~~~~~~~~~
4-
5-
This package contains code for decoding the MaxMind DB data section.
6-
7-
"""
1+
"""Decoder for the MaxMind DB data section."""
82

93
import struct
104
from typing import Dict, List, Tuple, Union, cast

maxminddb/errors.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
"""
2-
maxminddb.errors
3-
~~~~~~~~~~~~~~~~
4-
5-
This module contains custom errors for the MaxMind DB reader
6-
"""
1+
"""Typed errors thrown by this library."""
72

83

94
class InvalidDatabaseError(RuntimeError):
10-
"""This error is thrown when unexpected data is found in the database."""
5+
"""An error thrown when unexpected data is found in the database."""

maxminddb/extension.pyi

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
"""
2-
maxminddb.extension
3-
~~~~~~~~~~~~~~~~
4-
5-
This module contains the C extension database reader and related classes.
6-
7-
"""
1+
"""C extension database reader and related classes."""
82

93
# pylint: disable=E0601,E0602
104
from ipaddress import IPv4Address, IPv6Address

maxminddb/reader.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
"""
2-
maxminddb.reader
3-
~~~~~~~~~~~~~~~~
4-
5-
This module contains the pure Python database reader and related classes.
6-
7-
"""
1+
"""Pure-Python reader for the MaxMind DB file format."""
82

93
try:
104
import mmap

maxminddb/types.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
"""
2-
maxminddb.types
3-
~~~~~~~~~~~~~~~
4-
5-
This module provides a Record type that represents a database record.
6-
"""
1+
"""Types representing database records."""
72

83
from typing import AnyStr, Dict, List, Union
94

0 commit comments

Comments
 (0)