Skip to content

Commit

Permalink
Update pyupgrade arg
Browse files Browse the repository at this point in the history
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
  • Loading branch information
unkcpz committed Feb 21, 2024
1 parent c442df0 commit 24b5e05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py39-plus]

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
Expand Down
5 changes: 1 addition & 4 deletions aiidalab_widgets_base/nodes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Widgets to work with AiiDA nodes."""
import functools
import typing

import ipytree
import ipywidgets as ipw
Expand Down Expand Up @@ -93,9 +92,7 @@ class AiidaOutputsTreeNode(ipytree.Node):
icon = tl.Unicode("folder").tag(sync=True)
disabled = tl.Bool(True).tag(sync=True)

def __init__(
self, name, parent_pk, namespaces: typing.Tuple[str, ...] = (), **kwargs
):
def __init__(self, name, parent_pk, namespaces: tuple[str, ...] = (), **kwargs):
self.parent_pk = parent_pk
self.nodes_registry = {}
self.namespaces = namespaces
Expand Down
4 changes: 2 additions & 2 deletions aiidalab_widgets_base/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Some utility functions used acrross the repository."""
import threading
from enum import Enum
from typing import Any, Tuple
from typing import Any

import ipywidgets as ipw
import more_itertools as mit
Expand Down Expand Up @@ -200,7 +200,7 @@ def wrap_message(message, level=MessageLevel.INFO):
"""


def ase2spglib(ase_structure: Atoms) -> Tuple[Any, Any, Any]:
def ase2spglib(ase_structure: Atoms) -> tuple[Any, Any, Any]:
"""
Convert ase Atoms instance to spglib cell in the format defined at
https://spglib.github.io/spglib/python-spglib.html#crystal-structure-cell
Expand Down

0 comments on commit 24b5e05

Please sign in to comment.