Commit ceaac36
Do not use
* Do not use `utc_now` on module level
Looks like that this value is never used anywhere, and it should not be, because it is created once on a module import time.
I found this while working on python/typeshed#13514
* Fix tests as well
* fix lint import issue
* try to fix black lint errors
* fix again
---------
Co-authored-by: Asher Foa <[email protected]>utc_now on module level (#372)1 parent 0b4af73 commit ceaac36
2 files changed
+11
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | | - | |
17 | | - | |
| 15 | + | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | | - | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| |||
514 | 511 | | |
515 | 512 | | |
516 | 513 | | |
517 | | - | |
518 | | - | |
| 514 | + | |
| 515 | + | |
519 | 516 | | |
520 | 517 | | |
521 | 518 | | |
522 | 519 | | |
523 | 520 | | |
524 | 521 | | |
| 522 | + | |
| 523 | + | |
525 | 524 | | |
526 | 525 | | |
527 | 526 | | |
| |||
0 commit comments