view stubs/twisted/words/protocols/jabber/error.pyi @ 3994:69d970f974ff

component AP gateway: don't percent-encode `@`: Mastodon doesn't like when "@" is percent-encoded (because it doesn't do it, and it checks that the URL matches the ID without taking care of percent-encoding).
author Goffi <goffi@goffi.org>
date Fri, 10 Feb 2023 17:20:02 +0100
parents 8289ac1b34f4
children
line wrap: on
line source

from typing import Optional

from twisted.words.xish import domish


class BaseError(Exception):
    namespace: str
    condition: str
    text: Optional[str]
    textLang: Optional[str]
    appCondition: Optional[domish.Element]

class StanzaError(BaseError):
    ...