Skip to content

Commit

Permalink
Replace deprecated type annotations
Browse files Browse the repository at this point in the history
Ref. eng/recordflux/RecordFlux!1688
  • Loading branch information
treiher committed Oct 22, 2024
1 parent a751b4e commit f8fef61
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
3 changes: 2 additions & 1 deletion examples/apps/wireguard/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
import dataclasses
import math
import os
from collections.abc import Callable
from pathlib import Path
from typing import TYPE_CHECKING, Callable, Optional
from typing import TYPE_CHECKING, Optional

from rflx.model import NeverVerify
from rflx.pyrflx import MessageValue, PyRFLX
Expand Down
3 changes: 2 additions & 1 deletion rflx/fatal_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import sys
import traceback
import types
from typing import Callable, Final
from collections.abc import Callable
from typing import Final

from rflx.version import is_gnat_tracker_release, version

Expand Down
4 changes: 2 additions & 2 deletions rflx/ls/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import threading
import uuid
from collections import defaultdict
from collections.abc import Iterable, Mapping
from collections.abc import Callable, Iterable, Mapping
from pathlib import Path
from typing import Callable, Final
from typing import Final
from urllib.parse import unquote, urlparse

from lsprotocol.types import (
Expand Down
3 changes: 1 addition & 2 deletions rflx/model/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

import itertools
from collections import defaultdict
from collections.abc import Iterable, Mapping, Sequence
from collections.abc import Callable, Iterable, Mapping, Sequence
from concurrent.futures import ProcessPoolExecutor
from copy import copy
from dataclasses import dataclass, field as dataclass_field
from enum import Enum
from functools import cached_property, partial
from typing import Callable

from rflx import expr, expr_proof, ty
from rflx.common import Base, indent, indent_next, unique, verbose_repr
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/expr_conv_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/expr_proof_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable

import pytest
import z3
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/generator/allocator_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import Callable
from collections.abc import Callable

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/generator/common_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import textwrap
from typing import Callable
from collections.abc import Callable

import pytest

Expand Down
3 changes: 1 addition & 2 deletions tests/unit/generator/state_machine_test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from __future__ import annotations

import typing
from collections.abc import Sequence
from collections.abc import Callable, Sequence
from functools import lru_cache
from typing import Callable

import pytest
import z3
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/model/type_decl_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable

import pytest

Expand Down

0 comments on commit f8fef61

Please sign in to comment.