Skip to content

Commit fe2b779

Browse files
committed
Fix issues detected by pytype
1 parent d02f25c commit fe2b779

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

mkdocstrings/handlers/crystal/crystal_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import collections
22
import html.parser
33
import io
4-
from typing import Callable, Iterable, List, Sequence, Tuple
4+
from typing import Callable, Iterable, List, Optional, Sequence, Tuple
55

66
from markupsafe import Markup, escape
77

mkdocstrings/handlers/crystal/items.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,7 @@ class DocConstant(DocItem):
293293
_TEMPLATE = "constant.html"
294294

295295
@property
296-
def full_name(self):
297-
return (self.parent.full_name + "::" if self.parent else "") + self.name
298-
299-
@property
300-
def abs_id(self):
296+
def abs_id(self) -> str:
301297
return (
302298
self.parent.abs_id + "::" if self.parent and self.parent.parent else ""
303299
) + self.rel_id

0 commit comments

Comments
 (0)