Skip to content

Commit

Permalink
Filter code over pyupgrade --py38-plus and ruff (#2052)
Browse files Browse the repository at this point in the history
* filter code over `pyupgrade --py38-plus`

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>

* filter code over ruff to remove unused imports

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>

---------

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
  • Loading branch information
kloczek committed Jun 3, 2024
1 parent 2ad1315 commit 5f791e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion faker/providers/file/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def unix_device(self, prefix: Optional[str] = None) -> str:
if prefix is None:
prefix = self.random_element(self.unix_device_prefixes)
suffix: str = self.random_element(string.ascii_lowercase)
path = "/dev/{}{}".format(prefix, suffix)
path = f"/dev/{prefix}{suffix}"
return path

def unix_partition(self, prefix: Optional[str] = None) -> str:
Expand Down
2 changes: 0 additions & 2 deletions faker/proxy.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import datetime

from collections import OrderedDict
from decimal import Decimal
from enum import Enum
from json import encoder
from typing import (
Any,
Expand All @@ -18,7 +17,6 @@ from typing import (
Set,
Tuple,
Type,
TypeVar,
Union,
)
from uuid import UUID
Expand Down

0 comments on commit 5f791e4

Please sign in to comment.