Skip to content

Commit

Permalink
Merge pull request #8793 from madhavajay/madhava/fix_self
Browse files Browse the repository at this point in the history
Removed unnecessary imports for Self
  • Loading branch information
yashgorana authored May 8, 2024
2 parents 2b00032 + 8f3e628 commit e96fe62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ repos:

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.3
files: "^notebooks/(api|tutorials|admin)"
# nbQA has no files attribute
# files: "^notebooks/(api|tutorials|admin)"
hooks:
- id: nbqa-isort
- id: nbqa-black
Expand Down
12 changes: 3 additions & 9 deletions packages/syft/src/syft/types/uid.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@
import uuid
from uuid import UUID as uuid_type

# third party
from typing_extensions import Self

# relative
from ..serde.serializable import serializable
from ..util.logger import critical
from ..util.logger import traceback_and_raise

try:
# Python >= 3.11
# stdlib
from typing import Self
except ImportError:
# Python < 3.11
# third party
from typing_extensions import Self


@serializable(attrs=["value"])
class UID:
Expand Down

0 comments on commit e96fe62

Please sign in to comment.