Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Kumar-Code committed Apr 25, 2024
1 parent ea664af commit 967dda1
Show file tree
Hide file tree
Showing 61 changed files with 44 additions and 85 deletions.
3 changes: 0 additions & 3 deletions abdm/api/consent_flow_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
Do not edit the class manually.
""" # noqa: E501

import warnings
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictStr
from typing_extensions import Annotated
from abdm.models.consent_artefact_response import ConsentArtefactResponse
from abdm.models.consent_request_init_response import ConsentRequestInitResponse
from abdm.models.hiu_consent_notification_event import HIUConsentNotificationEvent
Expand Down
3 changes: 0 additions & 3 deletions abdm/api/data_flow_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
Do not edit the class manually.
""" # noqa: E501

import warnings
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictStr
from typing_extensions import Annotated
from abdm.models.data_notification import DataNotification
from abdm.models.hiu_health_information_request_response import (
HIUHealthInformationRequestResponse,
Expand Down
3 changes: 0 additions & 3 deletions abdm/api/gateway_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
Do not edit the class manually.
""" # noqa: E501

import warnings
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictStr
from typing_extensions import Annotated
from abdm.models.certs import Certs
from abdm.models.consent_fetch_request import ConsentFetchRequest
from abdm.models.consent_request import ConsentRequest
Expand Down
3 changes: 0 additions & 3 deletions abdm/api/identification_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
Do not edit the class manually.
""" # noqa: E501

import warnings
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictStr
from typing_extensions import Annotated
from abdm.models.patient_identification_response import PatientIdentificationResponse

from abdm.api_client import ApiClient, RequestSerialized
Expand Down
1 change: 0 additions & 1 deletion abdm/api/monitoring_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Do not edit the class manually.
""" # noqa: E501

import warnings
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
Expand Down
3 changes: 0 additions & 3 deletions abdm/api/patient_notification_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
Do not edit the class manually.
""" # noqa: E501

import warnings
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictStr
from typing_extensions import Annotated
from abdm.models.hiu_patient_status_notification import HiuPatientStatusNotification
from abdm.models.patient_status_notification import PatientStatusNotification

Expand Down
3 changes: 0 additions & 3 deletions abdm/api/subscriptions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
Do not edit the class manually.
""" # noqa: E501

import warnings
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictStr
from typing_extensions import Annotated
from abdm.models.hiu_subscription_notification import HIUSubscriptionNotification
from abdm.models.hiu_subscription_request_receipt import HIUSubscriptionRequestReceipt
from abdm.models.subscription_approval_notification import (
Expand Down
3 changes: 0 additions & 3 deletions abdm/api/user_auth_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
Do not edit the class manually.
""" # noqa: E501

import warnings
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import Field, StrictStr
from typing_extensions import Annotated
from abdm.models.patient_auth_confirm_response import PatientAuthConfirmResponse
from abdm.models.patient_auth_init_response import PatientAuthInitResponse
from abdm.models.patient_auth_mode_query_response import PatientAuthModeQueryResponse
Expand Down
5 changes: 0 additions & 5 deletions abdm/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
from abdm.exceptions import (
ApiValueError,
ApiException,
BadRequestException,
UnauthorizedException,
ForbiddenException,
NotFoundException,
ServiceException,
)

RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
Expand Down
2 changes: 1 addition & 1 deletion abdm/models/auth_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from pydantic import BaseModel, ConfigDict, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/certificate_or_key_get_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
from abdm.models.certificate_or_key_get_schema import CertificateOrKeyGetSchema
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/consent_artefact_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from abdm.models.consent_artefact_response_consent import ConsentArtefactResponseConsent
from abdm.models.error import Error
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from abdm.models.permission import Permission
from abdm.models.requester import Requester
from abdm.models.use_purpose import UsePurpose
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/consent_request_consent.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from abdm.models.permission import Permission
from abdm.models.requester import Requester
from abdm.models.use_purpose import UsePurpose
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/consent_request_init_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
)
from abdm.models.error import Error
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
9 changes: 2 additions & 7 deletions abdm/models/data_notification_entries_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,19 @@
""" # noqa: E501

from __future__ import annotations
from inspect import getfullargspec
import json
import pprint
import re # noqa: F401
from pydantic import (
BaseModel,
ConfigDict,
Field,
StrictStr,
ValidationError,
field_validator,
)
from typing import Optional
from abdm.models.entry_content import EntryContent
from abdm.models.entry_link import EntryLink
from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
from typing_extensions import Literal, Self
from pydantic import Field
from typing import Union, Any, Set, TYPE_CHECKING, Dict
from typing_extensions import Self

DATANOTIFICATIONENTRIESINNER_ANY_OF_SCHEMAS = ["EntryContent", "EntryLink"]

Expand Down
2 changes: 1 addition & 1 deletion abdm/models/error_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
from abdm.models.error import Error
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from abdm.models.health_information_notification_notification_status_notification_status_responses_inner import (
HealthInformationNotificationNotificationStatusNotificationStatusResponsesInner,
)
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/heartbeat_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from abdm.models.error import Error
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/hiu_consent_notification_event_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from typing import Any, ClassVar, Dict, List, Optional
from abdm.models.consent_artefact_reference import ConsentArtefactReference
from abdm.models.consent_status import ConsentStatus
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/hiu_consent_notification_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from abdm.models.consent_acknowledgement import ConsentAcknowledgement
from abdm.models.error import Error
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/hiu_consent_request_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
HIUConsentRequestStatusConsentRequest,
)
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/hiu_health_information_request_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
HIUHealthInformationRequestResponseHiRequest,
)
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/hiu_subscription_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from abdm.models.organization_representation import OrganizationRepresentation
from abdm.models.subscription_category import SubscriptionCategory
from abdm.models.subscription_period import SubscriptionPeriod
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
HIUSubscriptionNotificationAcknowledgmentAcknowledgement,
)
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
HIUSubscriptionRequestNotificationAcknowledgementAcknowledgement,
)
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/hiu_subscription_request_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
)
from abdm.models.error import Error
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from abdm.models.identifier_type import IdentifierType
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/open_id_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from pydantic import BaseModel, ConfigDict, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/patient_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from pydantic import BaseModel, ConfigDict, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/patient_auth_confirm_request_credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from abdm.models.patient_demographic import PatientDemographic
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/patient_auth_confirm_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
PatientAuthConfirmResponseAuth,
)
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/patient_auth_confirm_response_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from typing import Any, ClassVar, Dict, List, Optional
from abdm.models.access_token_validity import AccessTokenValidity
from abdm.models.patient_demographic_response import PatientDemographicResponse
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/patient_auth_init_request_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
PatientAuthInitRequestQueryRequester,
)
from abdm.models.patient_auth_purpose import PatientAuthPurpose
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/patient_auth_init_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from abdm.models.error import Error
from abdm.models.patient_auth_init_response_auth import PatientAuthInitResponseAuth
from abdm.models.request_reference import RequestReference
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
2 changes: 1 addition & 1 deletion abdm/models/patient_auth_init_response_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from typing import Any, ClassVar, Dict, List, Optional
from abdm.models.auth_meta import AuthMeta
from abdm.models.authentication_mode import AuthenticationMode
from typing import Optional, Set
from typing import Set
from typing_extensions import Self


Expand Down
Loading

0 comments on commit 967dda1

Please sign in to comment.