Skip to content

Commit

Permalink
refactor: remove mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 8, 2024
1 parent f7fb3d1 commit 7d5e919
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ repos:
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
# yaml requires additional stubs.
# Similar to: https://stackoverflow.com/a/73603491/5755604
additional_dependencies: ['types-PyYAML']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
hooks:
Expand Down
2 changes: 0 additions & 2 deletions mypy.ini

This file was deleted.

5 changes: 1 addition & 4 deletions utils/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ def __post_init__(self):
self.record_type = "reaction"

def __eq__(self, other):
return (
self.creator == other.creator
and self.clientmessageid == other.clientmessageid
)
return self.cached_deduplication_key == other.cached_deduplication_key

def __hash__(self):
return hash(self.cached_deduplication_key)
Expand Down

0 comments on commit 7d5e919

Please sign in to comment.