Get rid of serif pretentiosness

And some doc polish
This commit is contained in:
Hynek Schlawack 2017-11-08 07:11:10 +01:00
parent 3dffdffd6c
commit 2a50c4b930
3 changed files with 7 additions and 6 deletions

View File

@ -80,7 +80,7 @@ pygments_style = 'sphinx'
html_theme = "alabaster"
html_theme_options = {
"font_family": "Palatino, Georgia, serif",
"font_family": '"Avenir Next", "Helvetica Neue", Calibri, sans-serif',
"font_size": "18px",
}

View File

@ -7,7 +7,7 @@
Basics
------
The simplest possible usage would be:
The simplest possible usage is:
.. doctest::
@ -99,7 +99,7 @@ This is useful in times when you want to enhance classes that are not yours (nic
SomethingFromSomeoneElse(x=1)
`Subclassing <https://www.youtube.com/watch?v=3MNVP9-hglc>`_ is bad for you, but ``attrs`` will still do what you'd hope for:
`Subclassing is bad for you <https://www.youtube.com/watch?v=3MNVP9-hglc>`_, but ``attrs`` will still do what you'd hope for:
.. doctest::
@ -180,8 +180,9 @@ For the common case where you want to :func:`include <attr.filters.include>` or
... login = attr.ib()
... password = attr.ib()
... id = attr.ib()
>>> attr.asdict(User("jane", "s33kred", 42),
... filter=attr.filters.exclude(attr.fields(User).password, int))
>>> attr.asdict(
... User("jane", "s33kred", 42),
... filter=attr.filters.exclude(attr.fields(User).password, int))
{'login': 'jane'}
>>> @attr.s
... class C(object):

View File

@ -134,7 +134,7 @@ def attrib(default=NOTHING, validator=None,
.. versionchanged:: 17.1.0 *validator* can be a ``list`` now.
.. versionchanged:: 17.1.0
*hash* is ``None`` and therefore mirrors *cmp* by default .
*hash* is ``None`` and therefore mirrors *cmp* by default.
.. versionadded:: 17.3.0 *type*
"""
if hash is not None and hash is not True and hash is not False: