Skip to content

Commit 1614b0f

Browse files
committed
from __future__ import annotations
1 parent d7f29bb commit 1614b0f

5 files changed

Lines changed: 10 additions & 5 deletions

File tree

DOCS/simplesecurity/level.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ HIGH = 3
1717

1818
## Level
1919

20-
[[find in source code]](../../simplesecurity/level.py#L11)
20+
[[find in source code]](../../simplesecurity/level.py#L13)
2121

2222
```python
2323
class Level(IntEnum):
@@ -32,7 +32,7 @@ HIGH = 3
3232

3333
### Level().\_\_repr\_\_
3434

35-
[[find in source code]](../../simplesecurity/level.py#L25)
35+
[[find in source code]](../../simplesecurity/level.py#L27)
3636

3737
```python
3838
def __repr__() -> str:
@@ -46,7 +46,7 @@ __repr__ method.
4646

4747
### Level().\_\_str\_\_
4848

49-
[[find in source code]](../../simplesecurity/level.py#L33)
49+
[[find in source code]](../../simplesecurity/level.py#L35)
5050

5151
```python
5252
def __str__() -> str:
@@ -60,7 +60,7 @@ __str__ method (tostring).
6060

6161
### Level().toSarif
6262

63-
[[find in source code]](../../simplesecurity/level.py#L47)
63+
[[find in source code]](../../simplesecurity/level.py#L49)
6464

6565
```python
6666
def toSarif() -> str:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "simplesecurity"
3-
version = "2021.3.3"
3+
version = "2021.3.4"
44
license = "mit"
55
description = "Combine multiple popular python security tools and generate reports or output into different formats"
66
authors = ["FredHappyface"]

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

simplesecurity/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
""" entry point for python -m simplesecurity """
2+
from __future__ import annotations
3+
24
from . import cli
35

46
cli()

simplesecurity/level.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
MED = 2
66
HIGH = 3
77
"""
8+
from __future__ import annotations
9+
810
from enum import IntEnum
911

1012

0 commit comments

Comments
 (0)