Skip to content

Commit

Permalink
chore: pre-commit autoupdate (#2472)
Browse files Browse the repository at this point in the history
updates:
- [github.com/python-jsonschema/check-jsonschema: 0.28.4 → 0.28.5](python-jsonschema/check-jsonschema@0.28.4...0.28.5)
- [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.4.8](astral-sh/ruff-pre-commit@v0.4.7...v0.4.8)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and edgarrmondragon committed Jun 12, 2024
1 parent ae1d8fd commit 2e5567a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ repos:
)$
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.4
rev: 0.28.5
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.4.8
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand Down
10 changes: 4 additions & 6 deletions singer_sdk/helpers/_classproperty.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# flake8: noqa

"""Defines the `classproperty` decorator."""

from __future__ import annotations


class classproperty(property):
class classproperty(property): # noqa: N801
"""Class property decorator."""

def __get__(self, obj, objtype=None):
def __get__(self, obj, objtype=None): # noqa: ANN001, ANN204
return super().__get__(objtype)

def __set__(self, obj, value):
def __set__(self, obj, value): # noqa: ANN001, ANN204
super().__set__(type(obj), value)

def __delete__(self, obj):
def __delete__(self, obj): # noqa: ANN001, ANN204
super().__delete__(type(obj))

0 comments on commit 2e5567a

Please sign in to comment.