drop python 3.6

This commit is contained in:
Anthony Sottile
2021-09-11 14:41:46 -04:00
parent 04fc97a8f9
commit ebee8fe6ff
75 changed files with 385 additions and 300 deletions

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from babi.buf import Buf

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from babi import color_kd
from babi.color import Color

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from babi.color import Color

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from babi.color import Color

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import json
import pytest

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from babi.fdict import FChainMap

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,11 +1,10 @@
from __future__ import annotations
import contextlib
import curses
import os
import sys
from typing import List
from typing import NamedTuple
from typing import Tuple
from typing import Union
from unittest import mock
import pytest
@@ -148,7 +147,7 @@ class AssertScreenLineEquals(NamedTuple):
class AssertScreenAttrEquals(NamedTuple):
n: int
attr: List[Tuple[int, int, int]]
attr: list[tuple[int, int, int]]
def __call__(self, screen: Screen) -> None:
assert screen.attrs[self.n] == self.attr
@@ -170,7 +169,7 @@ class Resize(NamedTuple):
class KeyPress(NamedTuple):
wch: Union[int, str]
wch: int | str
def __call__(self, screen: Screen) -> None:
raise AssertionError('unreachable')
@@ -236,7 +235,7 @@ class CursesScreen:
class Key(NamedTuple):
tmux: str
curses: bytes
wch: Union[int, str]
wch: int | str
@property
def value(self) -> int:
@@ -300,7 +299,7 @@ class DeferredRunner:
def __init__(self, command, width=80, height=24, term='screen'):
self.command = command
self._i = 0
self._ops: List[Op] = []
self._ops: list[Op] = []
self.color_pairs = {0: (7, 0)}
self.screen = Screen(width, height)
self._n_colors, self._can_change_color = {

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from testing.runner import and_exit
from testing.runner import trigger_command_mode

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from testing.runner import and_exit
from testing.runner import trigger_command_mode

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import curses
from babi.screen import VERSION_STR

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from babi.screen import VERSION_STR
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import shlex
import sys

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import shlex
import sys

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import curses
import json

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import curses
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from testing.runner import and_exit

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import io
import pytest

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from babi.highlight import highlight_line

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import contextlib
import curses
from unittest import mock

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from babi import main

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import onigurumacffi
import pytest

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import json
import pytest

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import pytest
from babi.color import Color

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import os
from unittest import mock