Skip to content

Commit 9e10aac

Browse files
committed
Remove more bogus docstring formatting
1 parent 908f338 commit 9e10aac

5 files changed

Lines changed: 22 additions & 50 deletions

File tree

‎barcode/codabar.py‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@
1616
class CODABAR(Barcode):
1717
"""Initializes a new CODABAR instance.
1818
19-
:parameters:
20-
code : String
21-
Codabar (NW-7) string that matches [ABCD][0-9$:/.+-]+[ABCD]
22-
writer : barcode.writer Instance
23-
The writer to render the barcode (default: SVGWriter).
24-
narrow: Integer
25-
Width of the narrow elements (default: 2)
26-
wide: Integer
27-
Width of the wide elements (default: 5)
28-
wide/narrow must be in the range 2..3
19+
:param code: Codabar (NW-7) string that matches [ABCD][0-9$:/.+-]+[ABCD]
20+
:param writer: The writer to render the barcode (default: SVGWriter).
21+
:param narrow: Width of the narrow elements (default: 2)
22+
:param wide: Width of the wide elements (default: 5).
23+
wide/narrow must be in the range 2..3
2924
"""
3025

3126
name = "Codabar (NW-7)"

‎barcode/codex.py‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,8 @@ def render(self, writer_options=None, text=None):
9292
class PZN7(Code39):
9393
"""Initializes new German number for pharmaceutical products.
9494
95-
:parameters:
96-
pzn : String
97-
Code to render.
98-
writer : barcode.writer Instance
99-
The writer to render the barcode (default: SVGWriter).
95+
:param pzn: Code to render.
96+
:param writer: The writer to render the barcode (default: SVGWriter).
10097
"""
10198

10299
name = "Pharmazentralnummer"
@@ -137,11 +134,8 @@ class Code128(Barcode):
137134
"""Initializes a new Code128 instance. The checksum is added automatically
138135
when building the bars.
139136
140-
:parameters:
141-
code : String
142-
Code 128 string without checksum (added automatically).
143-
writer : barcode.writer Instance
144-
The writer to render the barcode (default: SVGWriter).
137+
:param code: Code 128 string without checksum (added automatically).
138+
:param writer: The writer to render the barcode (default: SVGWriter).
145139
"""
146140

147141
name = "Code 128"

‎barcode/ean.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,8 @@ def __init__(self, ean, writer=None, no_checksum=False, guardbar=True) -> None:
143143
class JapanArticleNumber(EuropeanArticleNumber13):
144144
"""Initializes JAN barcode.
145145
146-
:parameters:
147-
jan : String
148-
The jan number as string.
149-
writer : barcode.writer Instance
150-
The writer to render the barcode (default: SVGWriter).
146+
:param jan: The jan number as string.
147+
:param writer: The writer to render the barcode (default: SVGWriter).
151148
"""
152149

153150
name = "JAN"

‎barcode/isxn.py‎

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@
3434
class InternationalStandardBookNumber13(EuropeanArticleNumber13):
3535
"""Initializes new ISBN-13 barcode.
3636
37-
:parameters:
38-
isbn : String
39-
The isbn number as string.
40-
writer : barcode.writer Instance
41-
The writer to render the barcode (default: SVGWriter).
37+
:param isbn: The isbn number as string.
38+
:param writer: The writer to render the barcode (default: SVGWriter).
4239
"""
4340

4441
name = "ISBN-13"
@@ -57,11 +54,8 @@ class InternationalStandardBookNumber10(InternationalStandardBookNumber13):
5754
"""Initializes new ISBN-10 barcode. This code is rendered as EAN-13 by
5855
prefixing it with 978.
5956
60-
:parameters:
61-
isbn : String
62-
The isbn number as string.
63-
writer : barcode.writer Instance
64-
The writer to render the barcode (default: SVGWriter).
57+
:param isbn: The isbn number as string.
58+
:param writer: The writer to render the barcode (default: SVGWriter).
6559
"""
6660

6761
name = "ISBN-10"
@@ -90,11 +84,8 @@ class InternationalStandardSerialNumber(EuropeanArticleNumber13):
9084
"""Initializes new ISSN barcode. This code is rendered as EAN-13
9185
by prefixing it with 977 and adding 00 between code and checksum.
9286
93-
:parameters:
94-
issn : String
95-
The issn number as string.
96-
writer : barcode.writer Instance
97-
The writer to render the barcode (default: SVGWriter).
87+
:param issn: The issn number as string.
88+
:param writer: The writer to render the barcode (default: SVGWriter).
9889
"""
9990

10091
name = "ISSN"

‎barcode/itf.py‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,11 @@
1818
class ITF(Barcode):
1919
"""Initializes a new ITF instance.
2020
21-
:parameters:
22-
code : String
23-
ITF (Interleaved 2 of 5) numeric string
24-
writer : barcode.writer Instance
25-
The writer to render the barcode (default: SVGWriter).
26-
narrow: Integer
27-
Width of the narrow elements (default: 2)
28-
wide: Integer
29-
Width of the wide elements (default: 5)
30-
wide/narrow must be in the range 2..3
21+
:param code: ITF (Interleaved 2 of 5) numeric string
22+
:param writer: The writer to render the barcode (default: SVGWriter).
23+
:param narrow: Width of the narrow elements (default: 2)
24+
:param wide: Width of the wide elements (default: 5).
25+
wide/narrow must be in the range 2..3
3126
"""
3227

3328
name = "ITF"

0 commit comments

Comments
 (0)