Skip to content

Commit 02af58b

Browse files
committed
style(core): Start class docstring summaries on the first line
pydocstyle D212 flagged the two class docstrings added by this change (_ClientCacheMeta, SageMakerClient) once aws#6294 made the sagemaker-core codestyle job enforceable. Docstring-only change. --- X-AI-Prompt: fix the failing sagemaker-core codestyle check on PR 6273 X-AI-Tool: Kiro
1 parent 251b9df commit 02af58b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • sagemaker-core/src/sagemaker/core/utils

‎sagemaker-core/src/sagemaker/core/utils/utils.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ def __call__(cls, *args, **kwargs):
327327

328328

329329
class _ClientCacheMeta(type):
330-
"""
331-
Metaclass that caches instances per constructor arguments.
330+
"""Metaclass that caches instances per constructor arguments.
332331
333332
A call with no arguments returns the process-wide default instance, creating it
334333
from the default credential chain if none exists yet. A call with an explicit
@@ -381,8 +380,7 @@ def _evict(cache, default_key, max_keyed_entries):
381380

382381

383382
class SageMakerClient(metaclass=_ClientCacheMeta):
384-
"""
385-
Cached factory for SageMaker boto3 clients.
383+
"""Cached factory for SageMaker boto3 clients.
386384
387385
Clients are cached per (session, region_name, config). Passing an explicit boto3
388386
``session`` always yields clients signed with that session's credentials, even if

0 commit comments

Comments
 (0)