Skip to content

Commit 6cb2d39

Browse files
committed
Remove UP035 from ruff ignore list
1 parent 7254a9d commit 6cb2d39

40 files changed

+54
-54
lines changed

pyiceberg/avro/codecs/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626

2727
from __future__ import annotations
2828

29-
from typing import Literal
30-
31-
from typing_extensions import TypeAlias
29+
from typing import Literal, TypeAlias
3230

3331
from pyiceberg.avro.codecs.bzip2 import BZip2Codec
3432
from pyiceberg.avro.codecs.codec import Codec

pyiceberg/avro/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
import io
2323
import json
2424
import os
25+
from collections.abc import Callable
2526
from dataclasses import dataclass
2627
from enum import Enum
2728
from types import TracebackType
2829
from typing import (
29-
Callable,
3030
Generic,
3131
TypeVar,
3232
)

pyiceberg/avro/reader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@
2727
from __future__ import annotations
2828

2929
from abc import abstractmethod
30+
from collections.abc import Callable, Mapping
3031
from dataclasses import dataclass
3132
from dataclasses import field as dataclassfield
3233
from decimal import Decimal
3334
from typing import (
3435
Any,
35-
Callable,
36-
Mapping,
3736
)
3837
from uuid import UUID
3938

pyiceberg/avro/resolver.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
# pylint: disable=arguments-renamed,unused-argument
18+
from collections.abc import Callable
1819
from enum import Enum
19-
from typing import (
20-
Callable,
21-
)
2220

2321
from pyiceberg.avro.decoder import BinaryDecoder
2422
from pyiceberg.avro.reader import (

pyiceberg/catalog/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
import re
2323
import uuid
2424
from abc import ABC, abstractmethod
25+
from collections.abc import Callable
2526
from dataclasses import dataclass
2627
from enum import Enum
2728
from typing import (
2829
TYPE_CHECKING,
2930
Any,
30-
Callable,
3131
cast,
3232
)
3333

pyiceberg/cli/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
# pylint: disable=broad-except,redefined-builtin,redefined-outer-name
18+
from collections.abc import Callable
1819
from functools import wraps
1920
from typing import (
2021
Any,
21-
Callable,
2222
Literal,
2323
)
2424

pyiceberg/conversions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131

3232
import codecs
3333
import uuid
34+
from collections.abc import Callable
3435
from datetime import date, datetime, time
3536
from decimal import Decimal
3637
from functools import singledispatch
3738
from struct import Struct
3839
from typing import (
3940
Any,
40-
Callable,
4141
)
4242

4343
from pyiceberg.typedef import UTF8, L

pyiceberg/expressions/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919

2020
import builtins
2121
from abc import ABC, abstractmethod
22+
from collections.abc import Callable, Iterable, Sequence
2223
from functools import cached_property
23-
from typing import TYPE_CHECKING, Any, Callable, Iterable, Sequence, cast
24+
from typing import TYPE_CHECKING, Any, cast
2425
from typing import Literal as TypingLiteral
2526

2627
from pydantic import ConfigDict, Field

pyiceberg/expressions/visitors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
# under the License.
1717
import math
1818
from abc import ABC, abstractmethod
19+
from collections.abc import Callable
1920
from functools import singledispatch
2021
from typing import (
2122
Any,
22-
Callable,
2323
Generic,
2424
SupportsFloat,
2525
TypeVar,

pyiceberg/io/fsspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
import logging
2323
import os
2424
import threading
25+
from collections.abc import Callable
2526
from copy import copy
2627
from functools import lru_cache
2728
from typing import (
2829
TYPE_CHECKING,
2930
Any,
30-
Callable,
3131
)
3232
from urllib.parse import urlparse
3333

0 commit comments

Comments
 (0)