Skip to content

Commit

Permalink
fix static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Jul 13, 2023
1 parent f0f694d commit dd2cf17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pydoctor/epydoc2stan.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@

from collections import defaultdict
import enum
from functools import partial
import inspect
import builtins
from itertools import chain
from typing import (
TYPE_CHECKING, Any, Callable, ClassVar, DefaultDict, Dict, Generator,
Iterator, List, Mapping, Optional, Sequence, Tuple, TypeVar, Union,
)
import ast
import re

import attr
Expand Down Expand Up @@ -926,7 +924,8 @@ def _get_parsed_value() -> Optional[ParsedDocstring]:
linelen=obj.system.options.pyvalreprlinelen,
maxlines=obj.system.options.pyvalreprmaxlines) if obj.value is not None else None
# Report eventual warnings.
reportWarnings(obj, v.warnings, section='colorize constant')
if v:
reportWarnings(obj, v.warnings, section='colorize constant')
return v
return _memoize(obj, 'parsed_value', _get_parsed_value)

Expand Down
1 change: 0 additions & 1 deletion pydoctor/templatewriter/pages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from pydoctor.templatewriter import util, TemplateLookup, TemplateElement
from pydoctor.templatewriter.pages.table import ChildTable
from pydoctor.templatewriter.pages.sidebar import SideBar
from pydoctor.epydoc.markup._pyval_repr import colorize_inline_pyval

if TYPE_CHECKING:
from typing_extensions import Final
Expand Down

0 comments on commit dd2cf17

Please sign in to comment.