Update mypy configuration: no_implicit_optional = True (#9742)

This commit is contained in:
Jonathan de Jong 2021-04-05 15:10:18 +02:00 committed by GitHub
parent 4609e58970
commit e2b8a90897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 21 additions and 11 deletions

View file

@ -13,7 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Union
from typing import Optional, Union
from twisted.internet.defer import succeed
@ -74,7 +74,10 @@ class FallbackAuthTests(unittest.HomeserverTestCase):
return channel
def recaptcha(
self, session: str, expected_post_response: int, post_session: str = None
self,
session: str,
expected_post_response: int,
post_session: Optional[str] = None,
) -> None:
"""Get and respond to a fallback recaptcha. Returns the second request."""
if post_session is None: