Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dedoc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ilya
dedoc
Merge requests
!27
rel 7610 fix bug with list
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
rel 7610 fix bug with list
i7610_bug_with_tricky_doc
into
master
Overview
0
Commits
1
Pipelines
0
Changes
6
Merged
Ilya
requested to merge
i7610_bug_with_tricky_doc
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
6
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
d27955e7
1 commit,
4 years ago
6 files
+
20
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
dedoc/data_structures/line_with_meta.py
+
4
−
2
Options
@@ -34,9 +34,11 @@ class LineWithMeta:
self
.
_annotations
=
annotations
def
__check_hierarchy_level
(
self
,
hierarchy_level
:
HierarchyLevel
):
assert
hierarchy_level
is
None
or
isinstance
(
hierarchy_level
,
HierarchyLevel
)
if
not
(
hierarchy_level
is
None
or
isinstance
(
hierarchy_level
,
HierarchyLevel
)):
raise
Exception
(
hierarchy_level
)
assert
hierarchy_level
is
None
or
hierarchy_level
.
level_1
is
None
or
hierarchy_level
.
level_1
>=
0
assert
hierarchy_level
is
None
or
hierarchy_level
.
level_2
is
None
or
hierarchy_level
.
level_2
>=
0
if
not
(
hierarchy_level
is
None
or
hierarchy_level
.
level_2
is
None
or
hierarchy_level
.
level_2
>=
0
):
raise
Exception
(
hierarchy_level
)
@property
def
line
(
self
)
->
str
:
Loading