Skip to content

Commit b77c7d5

Browse files
committed
Upgrade Python syntax with pyupgrade --py38-plus
1 parent 37f68c7 commit b77c7d5

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

cachecontrol/caches/file_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class _FileCacheMixin:
6464

6565
def __init__(
6666
self,
67-
directory: Union[str, Path],
67+
directory: str | Path,
6868
forever: bool = False,
6969
filemode: int = 0o0600,
7070
dirmode: int = 0o0700,

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# SPDX-FileCopyrightText: 2015 Eric Larson
42
#
53
# SPDX-License-Identifier: Apache-2.0

examples/benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
HOST = "localhost"
1515
PORT = 8050
16-
URL = "http://{}:{}/".format(HOST, PORT)
16+
URL = f"http://{HOST}:{PORT}/"
1717

1818

19-
class Server(object):
19+
class Server:
2020

2121
def __call__(self, env, sr):
2222
body = "Hello World!"

0 commit comments

Comments
 (0)