File tree Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 1
- __author__ = "Tsuyoshi Hombashi"
2
- __copyright__ = f"Copyright 2016, { __author__ } "
3
- __license__ = "MIT License"
1
+ from typing import Final
2
+
3
+
4
+ __author__ : Final = "Tsuyoshi Hombashi"
5
+ __copyright__ : Final = f"Copyright 2016, { __author__ } "
6
+ __license__ : Final = "MIT License"
4
7
__version__ = "1.1.3"
5
- __maintainer__ = __author__
6
- __email__ = "tsuyoshi.hombashi@gmail.com"
8
+ __maintainer__ : Final = __author__
9
+ __email__ : Final = "tsuyoshi.hombashi@gmail.com"
Original file line number Diff line number Diff line change 3
3
"""
4
4
5
5
import os .path
6
+ from typing import Final
6
7
7
8
8
9
# list from https://github.com/sindresorhus/binary-extensions
9
- binary_exts = (
10
+ binary_exts : Final = (
10
11
"3dm" ,
11
12
"3ds" ,
12
13
"3g2" ,
Original file line number Diff line number Diff line change 5
5
import copy
6
6
import re
7
7
from collections .abc import Sequence
8
- from typing import Optional
8
+ from typing import Final , Optional
9
9
10
10
from ._func import to_codec_name
11
11
@@ -20,7 +20,7 @@ class MultiByteStrDecoder:
20
20
https://docs.python.org/3/library/codecs.html
21
21
"""
22
22
23
- __CODECS = [
23
+ __CODECS : Final = [
24
24
"utf_7" ,
25
25
"utf_8" ,
26
26
"utf_8_sig" ,
Original file line number Diff line number Diff line change 3
3
"""
4
4
5
5
import os .path
6
+ from typing import Final
6
7
7
8
import setuptools
8
9
9
10
10
- MODULE_NAME = "mbstrdecoder"
11
- REPOSITORY_URL = f"https://github.com/thombashi/{ MODULE_NAME :s} "
12
- REQUIREMENT_DIR = "requirements"
13
- ENCODING = "utf8"
11
+ MODULE_NAME : Final = "mbstrdecoder"
12
+ REPOSITORY_URL : Final = f"https://github.com/thombashi/{ MODULE_NAME :s} "
13
+ REQUIREMENT_DIR : Final = "requirements"
14
+ ENCODING : Final = "utf8"
14
15
15
16
pkg_info : dict [str , str ] = {}
16
17
You can’t perform that action at this time.
0 commit comments