From 2a50c4b93002a0f4f4355051759beae5e0324497 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 8 Nov 2017 07:11:10 +0100 Subject: [PATCH] Get rid of serif pretentiosness And some doc polish --- docs/conf.py | 2 +- docs/examples.rst | 9 +++++---- src/attr/_make.py | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index d7748fde..cd9a2882 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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", } diff --git a/docs/examples.rst b/docs/examples.rst index 67b6e76b..2244485d 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -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 `_ is bad for you, but ``attrs`` will still do what you'd hope for: +`Subclassing is bad for you `_, 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 ` 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): diff --git a/src/attr/_make.py b/src/attr/_make.py index c5d63e64..365e9de1 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -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: