1 | |||
0 ignored issues
–
show
|
|||
2 | |||
3 | def verify_order(order): |
||
0 ignored issues
–
show
This function should have a docstring.
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods: class SomeClass:
def some_method(self):
"""Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions. ![]() |
|||
4 | order = order.upper() |
||
5 | if order != 'C' and order != 'F': |
||
6 | raise TypeError("order must be 'C' or 'F', not %r" % (order,)) |
||
7 | return order |
||
8 | |||
9 | def handle_order(shape, order): |
||
0 ignored issues
–
show
This function should have a docstring.
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods: class SomeClass:
def some_method(self):
"""Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions. ![]() |
|||
10 | order = verify_order(order) |
||
11 | if order == 'C': |
||
12 | return shape |
||
13 | else: |
||
14 | return tuple(reversed(shape)) |
||
15 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.