소스 검색

Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054)

tags/v1.46.0rc1
reivilibre 2 년 전
committed by GitHub
부모
커밋
2a2b189130
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
4개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -0
      MANIFEST.in
  2. +1
    -0
      changelog.d/11054.misc
  3. +9
    -2
      synapse/module_api/errors.py
  4. +0
    -0
     

+ 1
- 0
MANIFEST.in 파일 보기

@@ -8,6 +8,7 @@ include demo/demo.tls.dh
include demo/*.py
include demo/*.sh

include synapse/py.typed
recursive-include synapse/storage *.sql
recursive-include synapse/storage *.sql.postgres
recursive-include synapse/storage *.sql.sqlite


+ 1
- 0
changelog.d/11054.misc 파일 보기

@@ -0,0 +1 @@
Mark the Synapse package as containing type annotations and fix export declarations so that Synapse pluggable modules may be type checked against Synapse.

+ 9
- 2
synapse/module_api/errors.py 파일 보기

@@ -14,9 +14,16 @@

"""Exception types which are exposed as part of the stable module API"""

from synapse.api.errors import ( # noqa: F401
from synapse.api.errors import (
InvalidClientCredentialsError,
RedirectException,
SynapseError,
)
from synapse.config._base import ConfigError # noqa: F401
from synapse.config._base import ConfigError

__all__ = [
"InvalidClientCredentialsError",
"RedirectException",
"SynapseError",
"ConfigError",
]

+ 0
- 0
파일 보기


불러오는 중...
취소
저장