Skip to content

Commit 4d1a790

Browse files
committed
add from __future__ import annotations
1 parent 4cd5b86 commit 4d1a790

File tree

307 files changed

+615
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+615
-1
lines changed

src/exabgp/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
if __name__ == '__main__':
1+
from __future__ import annotations
2+
3+
if __name__ == "__main__":
24
from exabgp.application.main import main
35

46
main()

src/exabgp/application/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
"""exabgp command line interface"""
55

6+
from __future__ import annotations
7+
68
import os
79
import sys
810
import time

src/exabgp/application/decode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# encoding: utf-8
22

3+
from __future__ import annotations
4+
35
import sys
46
import string
57
import argparse

src/exabgp/application/environ.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
"""exabgp environement values"""
44

5+
from __future__ import annotations
6+
57
import sys
68
import argparse
79

src/exabgp/application/flow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
# based on the blog at: http://blog.sflow.com/2017/07/bgp-flowspec-on-white-box-switch.html
1111

12+
from __future__ import annotations
13+
1214
import os
1315
import sys
1416
import json

src/exabgp/application/healthcheck.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
4141
"""
4242

43+
from __future__ import annotations
44+
4345
import sys
4446
import os
4547
import subprocess

src/exabgp/application/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
License: 3-clause BSD. (See the COPYRIGHT file)
88
"""
99

10+
from __future__ import annotations
11+
1012
import os
1113
import sys
1214
import argparse

src/exabgp/application/pipe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
License: 3-clause BSD. (See the COPYRIGHT file)
88
"""
99

10+
from __future__ import annotations
11+
1012
import os
1113
import sys
1214
import fcntl

src/exabgp/application/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
"""exabgp server"""
44

5+
from __future__ import annotations
6+
57
import os
68
import sys
79
import time

src/exabgp/application/validate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
"""exabgp configuration validation"""
44

5+
from __future__ import annotations
6+
57
import sys
68
import argparse
79

0 commit comments

Comments
 (0)