From 56464c65e287f7f2825eadb184364389f6ae09b6 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Thu, 23 May 2024 16:00:53 +0100 Subject: [PATCH] :wrench: Add additional optional attributes to LDAPInetOrgPerson --- apricot/models/ldap_inetorgperson.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apricot/models/ldap_inetorgperson.py b/apricot/models/ldap_inetorgperson.py index 8e0da25..51e5cb5 100644 --- a/apricot/models/ldap_inetorgperson.py +++ b/apricot/models/ldap_inetorgperson.py @@ -1,5 +1,3 @@ -from typing import Optional - from .ldap_organizational_person import LDAPOrganizationalPerson @@ -14,10 +12,12 @@ class LDAPInetOrgPerson(LDAPOrganizationalPerson): """ cn: str - displayName: Optional[str] # noqa: N815 - givenName: str # noqa: N815 + displayName: str | None = None # noqa: N815 + employeeNumber: str | None = None # noqa: N815 + givenName: str | None = None # noqa: N815 sn: str - mail: Optional[str] = None + mail: str | None = None + telephoneNumber: str | None = None # noqa: N815 def names(self) -> list[str]: return [*super().names(), "inetOrgPerson"]