forked from quwac/pyproject-autoflake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.py
35 lines (33 loc) · 773 Bytes
/
sample.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import math
import re
import os
import random
import multiprocessing
import grp, pwd, platform
import subprocess, sys
from os.path import *
from typing import Set
h = {
'a': 1,
'b': 2,
'c': 3,
'd': 4,
'e': 5,
'f': 6,
'b': 7,
}
def foo():
from abc import ABCMeta, WeakSet
try:
import multiprocessing
print(multiprocessing.cpu_count())
is_dummy_path = join('is', 'dummy', 'path')
print(is_dummy_path)
duplicate_keys_set = {'a', 'b', 'c', 'a'}
print(f'{duplicate_keys_set}')
duplicate_keys_dict = {'a': 0, 'b': 1, 'c': 2, 'a': 3}
print(f'{duplicate_keys_dict}')
unused_variable = 10
except ImportError as exception:
print(sys.version)
return math.pi