Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Python Binary Wheel Package
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON Templates
Python Binary Wheel Package
Merge requests
!4
Documentation example
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Documentation example
source-documentation-demo
into
main
Overview
0
Commits
1
Pipelines
4
Changes
1
Closed
Documentation example
Corné Lukken
requested to merge
source-documentation-demo
into
main
Oct 2, 2023
Overview
0
Commits
1
Pipelines
4
Changes
1
0
0
Merge request reports
Compare
main
version 3
2594d016
Oct 2, 2023
version 2
aa072240
Oct 2, 2023
version 1
d3c6f9b0
Oct 2, 2023
main (base)
and
latest version
latest version
7a1f6290
1 commit,
Oct 2, 2023
version 3
2594d016
1 commit,
Oct 2, 2023
version 2
aa072240
1 commit,
Oct 2, 2023
version 1
d3c6f9b0
1 commit,
Oct 2, 2023
1 file
+
27
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/cool_module.py
+
27
−
0
View file @ 7a1f6290
Edit in single-file editor
Open in Web IDE
"""
Cool module containing functions, classes and other useful things
"""
from
typing
import
Union
from
collections
import
OrderedDict
def
greeter
():
"""
Prints a nice message
"""
print
(
"
Hello World!, test line over 80 but not 88 characters on a single line
"
)
class
DocumentationExample
:
"""
Class to demonstrate docstring documentation
"""
def
__init__
(
self
):
self
.
attribute
:
str
=
"
Hello World
"
def
operate
(
self
,
data
:
Union
[
str
,
int
])
->
int
:
"""
Perform operation
:py:attr:`.self.attribute`
:py:func:`~.greeter`
:py:class:`collections.OrderedDict`
``OrderedDict(data)``
:param data: The data to peform the operation on
:raises RuntimeError: Raised if not enough memory to create Dict
:return: integer value representing success or failure
"""
test
=
OrderedDict
()
return
0
Loading