mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-24 17:28:40 +08:00
Never explicitly inherit from object in Python 3-only stubs (#6777)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
from collections.abc import Generator, Iterable
|
||||
from typing import Any
|
||||
|
||||
class HTMLParser(object): # actually html5lib.HTMLParser
|
||||
class HTMLParser: # actually html5lib.HTMLParser
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
|
||||
class Filter(object): # actually html5lib.filters.base.Filter
|
||||
class Filter: # actually html5lib.filters.base.Filter
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
|
||||
class SanitizerFilter(object): # actually html5lib.filters.sanitizer.Filter
|
||||
class SanitizerFilter: # actually html5lib.filters.sanitizer.Filter
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
|
||||
class HTMLSerializer(object): # actually html5lib.serializer.HTMLSerializer
|
||||
class HTMLSerializer: # actually html5lib.serializer.HTMLSerializer
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
|
||||
class BleachHTMLParser(HTMLParser):
|
||||
|
||||
@@ -21,7 +21,7 @@ def build_email_re(tlds: Iterable[str] = ...) -> Pattern[str]: ...
|
||||
|
||||
EMAIL_RE: Pattern[str]
|
||||
|
||||
class Linker(object):
|
||||
class Linker:
|
||||
def __init__(
|
||||
self,
|
||||
callbacks: Iterable[_Callback] = ...,
|
||||
|
||||
@@ -15,7 +15,7 @@ INVISIBLE_REPLACEMENT_CHAR: str
|
||||
# A html5lib Filter class
|
||||
_Filter = Any
|
||||
|
||||
class Cleaner(object):
|
||||
class Cleaner:
|
||||
tags: Container[str]
|
||||
attributes: _Attributes
|
||||
styles: Container[str]
|
||||
|
||||
Reference in New Issue
Block a user