Skip to content

Commit 1bb4cab

Browse files
committed
chore(syntax): autoflake / pyupgrade pass
pip install pyupgrade autoflake; \ pyupgrade --py37 tests/**/*.py docs/**/*.py libtmux/**/*.py; \ poetry run autoflake tests/**/*.py docs/**/*.py libtmux/**/*.py -i --ignore-init-module-imports --exclude libtmux/_compat.py; \ make black isort
1 parent bc48780 commit 1bb4cab

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# flake8: NOQA E5
22
import inspect
3-
import os
43
import sys
54
from os.path import dirname, relpath
65
from pathlib import Path

libtmux/common.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,8 @@
1111
import subprocess
1212
import sys
1313
import typing as t
14-
from collections.abc import MutableMapping
1514
from distutils.version import LooseVersion
16-
from typing import (
17-
Any,
18-
Dict,
19-
Generic,
20-
KeysView,
21-
List,
22-
Optional,
23-
TypeVar,
24-
Union,
25-
overload,
26-
)
15+
from typing import Dict, Generic, KeysView, List, Optional, TypeVar, Union, overload
2716

2817
from . import exc
2918
from ._compat import console_to_str, str_from_console

libtmux/pane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
import logging
99
import typing as t
10-
from typing import Dict, overload
10+
from typing import overload
1111

1212
from libtmux.common import tmux_cmd
1313

0 commit comments

Comments
 (0)