Skip to content

Commit

Permalink
add missing from __future__ import annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jan 2, 2025
1 parent 84063b0 commit d963b91
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyglossary/ui/ui_web/websocket_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from __future__ import annotations

import base64
import json
import logging
import os.path
from pathlib import Path
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from pyglossary.glossary_types import EntryType

from pyglossary.glossary_types import EntryType
from pyglossary.glossary_v2 import Glossary
from pyglossary.ui.ui_web.weblog import WebLogHandler
from pyglossary.ui.ui_web.websocket_handler import HTTPWebSocketHandler
Expand Down
2 changes: 2 additions & 0 deletions tests/entry_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import sys
import unittest
from os.path import abspath, dirname
Expand Down
2 changes: 2 additions & 0 deletions tests/option_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import sys
import unittest
from os.path import abspath, dirname
Expand Down
2 changes: 2 additions & 0 deletions tests/stardict_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import locale
import random
import unittest
Expand Down

0 comments on commit d963b91

Please sign in to comment.