Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <paul.horton@owasp.org>
  • Loading branch information
madpah committed Sep 5, 2022
1 parent d2211c9 commit 3427f4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions serializable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
import json
import logging
import re
import typing # type: ignore
import typing # noqa: F401
import warnings
from copy import copy
from io import StringIO, TextIOWrapper
from json import JSONEncoder
from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, TypeVar, Union, cast
from xml.etree import ElementTree

from .formatters import CurrentFormatter, BaseNameFormatter
from .formatters import BaseNameFormatter, CurrentFormatter
from .helpers import BaseHelper

logger = logging.getLogger('serializable')
Expand Down Expand Up @@ -682,12 +682,12 @@ def _parse_type(self, type_: Any) -> None:
if self._deferred_type_parsing:
self._deferred_type_parsing = False

def __eq__(self, other) -> bool:
def __eq__(self, other: Any) -> bool:
if isinstance(other, ObjectMetadataLibrary.SerializableProperty):
return hash(other) == hash(self)
return False

def __lt__(self, other) -> bool:
def __lt__(self, other: Any) -> bool:
if isinstance(other, ObjectMetadataLibrary.SerializableProperty):
return self.xml_sequence < other.xml_sequence
return NotImplemented
Expand Down

0 comments on commit 3427f4b

Please sign in to comment.