Skip to content

Commit 73794e4

Browse files
authored
rename plugs to extentions (#1774)
Signed-off-by: yiliu30 <yi4.liu@intel.com>
1 parent 7b8aec0 commit 73794e4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/source/coding_style.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@ import sys
2828

2929
from x import py
3030
from x import y as z
31-
from copy import deepcopy
32-
from subprocess import Popen, PIPE
3331
```
3432

3533
- Not recommend
3634

3735
```python
3836
from sub_module import * # May lead to namespace pollution
3937
import os, sys # Import on separate lines
40-
import copy # May import local copy.py
38+
from subprocess import Popen # Use import statements for packages and modules only, `Popen` is a class
39+
from subprocess import PIPE # Use import statements for packages and modules only, `Popen` is a constant
4140
```
4241

4342
### Strings
@@ -115,7 +114,7 @@ ComplexTFMap: TypeAlias = Mapping[str, _LossAndGradient]
115114
def xx_func(cls) -> Dict[str, OrderedDict[str, Dict[str, object]]]: # Can't improve the readability
116115
```
117116

118-
- Plugs:
117+
- VS Code Extensions:
119118
- [python](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
120119
- [pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
121120

@@ -165,7 +164,7 @@ class OutOfCheeseError(Exception):
165164

166165
> A `TODO` comment begins with the word `TODO:` for facilitate searching.
167166
168-
- Plug:
167+
- VS Code Extension:
169168
[Better Comments](https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments)
170169

171170

0 commit comments

Comments
 (0)