Skip to content

Commit 4c566d7

Browse files
committed
ignore misc errors
1 parent 57df026 commit 4c566d7

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

src/eduid/satosa/scimapi/accr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
type ProcessReturnType = InternalData | Response
1919

2020

21-
class request(RequestMicroService):
21+
class request(RequestMicroService): # type: ignore[misc]
2222
"""
2323
A class to handle and the ACCR request flowing through Satosa.
2424
```yaml
@@ -105,7 +105,7 @@ def process(self, context: Context, data: InternalData) -> ProcessReturnType:
105105
return super().process(context, data)
106106

107107

108-
class response(ResponseMicroService):
108+
class response(ResponseMicroService): # type: ignore[misc]
109109
"""
110110
A class to handle and the ACCR response flowing through Satosa.
111111
```yaml

src/eduid/satosa/scimapi/nameid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
logger = logging.getLogger(__name__)
2828

2929

30-
class request(RequestMicroService):
30+
class request(RequestMicroService): # type: ignore[misc]
3131
def __init__(
3232
self,
3333
config: Mapping[str, Any],
@@ -56,7 +56,7 @@ def process(self, context: Context, data: InternalData) -> ProcessReturnType:
5656
return super().process(context, data)
5757

5858

59-
class response(ResponseMicroService):
59+
class response(ResponseMicroService): # type: ignore[misc]
6060
def __init__(
6161
self,
6262
config: Mapping[str, Any],

src/eduid/satosa/scimapi/pairwiseid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Config:
1818
pairwise_salt: str
1919

2020

21-
class GeneratePairwiseId(ResponseMicroService):
21+
class GeneratePairwiseId(ResponseMicroService): # type: ignore[misc]
2222
"""
2323
MicroService go generate pairwise-id based on subject-id
2424

src/eduid/satosa/scimapi/scim_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class UserGroups:
3939
manager: list[ScimApiGroup] = field(default_factory=list)
4040

4141

42-
class ScimAttributes(ResponseMicroService):
42+
class ScimAttributes(ResponseMicroService): # type: ignore[misc]
4343
"""
4444
Add attributes from the scim db to the responses.
4545
"""

src/eduid/satosa/scimapi/serve_static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
logger = logging.getLogger("satosa")
1515

1616

17-
class ServeStatic(RequestMicroService):
17+
class ServeStatic(RequestMicroService): # type: ignore[misc]
1818
"""
1919
A class to serve static files from a given directory
2020

src/eduid/satosa/scimapi/static_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
StaticAppendedAttributesConfig = dict[str, list[dict[str, str]]]
1616

1717

18-
class AddStaticAttributesForVirtualIdp(ResponseMicroService):
18+
class AddStaticAttributesForVirtualIdp(ResponseMicroService): # type: ignore[misc]
1919
"""
2020
A class that add static attributes to a response set.
2121
The following example configuration illustrates most common features:

src/eduid/satosa/scimapi/statsd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
logger = logging.getLogger(__name__)
1414

1515

16-
class RequesterCounter(ResponseMicroService):
16+
class RequesterCounter(ResponseMicroService): # type: ignore[misc]
1717
"""
1818
A class to count the requesting SP.
1919

src/eduid/satosa/scimapi/stepup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
STATE_KEY_MFA = "requester-authn-class-ref"
5959

6060

61-
class StepUpError(SATOSAError):
61+
class StepUpError(SATOSAError): # type: ignore[misc]
6262
"""Generic error for this plugin."""
6363

6464

@@ -104,7 +104,7 @@ class StepupParams(BaseModel):
104104

105105

106106
# Applied to response from IDP
107-
class StepUp(ResponseMicroService):
107+
class StepUp(ResponseMicroService): # type: ignore[misc]
108108
"""
109109
A micro-SP just to handle the communication towards the StepUp Service for SFO.
110110
@@ -512,7 +512,7 @@ def register_endpoints(self) -> list[tuple[str, CallbackCallSignature]]:
512512

513513

514514
# applied to incoming request from SP
515-
class AuthnContext(RequestMicroService):
515+
class AuthnContext(RequestMicroService): # type: ignore[misc]
516516
"""
517517
A micro-service that runs when the authnRequest is first received from the SP.
518518
@@ -634,7 +634,7 @@ def get_loa_settings_for_entity_id(
634634
return None
635635

636636

637-
class StepupSAMLBackend(SAMLBackend):
637+
class StepupSAMLBackend(SAMLBackend): # type: ignore[misc]
638638
"""
639639
A SAML backend to request custom authn context class references from IdP:s with certain entity attributes.
640640
"""
@@ -665,7 +665,7 @@ def authn_request(self, context: satosa.context.Context, entity_id: str) -> SeeO
665665
return super().authn_request(context, entity_id)
666666

667667

668-
class RewriteAuthnContextClass(ResponseMicroService):
668+
class RewriteAuthnContextClass(ResponseMicroService): # type: ignore[misc]
669669
"""
670670
When we receive a response from an IdP, we check if we have configuration specifying
671671
'normalisation' of the authn context class reference in our MFA configuration.

src/eduid/webapp/common/authn/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def delete(self, saml2_session_id: str) -> None:
6464
del self._db[saml2_session_id]
6565

6666

67-
class IdentityCache(Cache):
67+
class IdentityCache(Cache): # type: ignore[misc]
6868
"""Handles information about the users that have been successfully logged in.
6969
7070
This information is useful because when the user logs out we must

src/eduid/workers/job_runner/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from eduid.workers.job_runner.jobs.skv import check_skv_users, gather_skv_users
77

88

9-
class JobScheduler(AsyncIOScheduler):
9+
class JobScheduler(AsyncIOScheduler): # type: ignore[misc]
1010
def schedule_jobs(self, context: Context) -> None:
1111
"""
1212
Schedule all jobs configured for host or environment

0 commit comments

Comments
 (0)