由mypyboto3buider 4.2.0生成的boto3.SSOAdmin 1.16.35服务的类型注释

mypy-boto3-sso-admin的Python项目详细描述


mypy-boto3-sso-管理

PyPI - mypy-boto3-sso-adminPyPI - Python VersionDocs

boto3.typed

的类型批注 boto3.SSOAdmin 1.16.35服务 兼容 VSCodePyCharmEmacsSublime Textmypypyright 以及其他工具。在

mypy-boto3-buider 4.2.0生成。在

更多信息可在boto3-stubs页找到。在

了解它如何帮助查找和修复潜在的错误:

boto3-stubs demo

如何安装

SSOAdmin服务安装boto3-stubs。在

python -m pip install boto3-stubs[sso-admin]

使用

VSCode

  • {a29}安装
  • 安装Pylance extension
  • Pylance设置为Python语言服务器
  • 在您的环境中安装boto-stubs[sso-admin]python -m pip install 'boto3-stubs[sso-admin]'

类型检查和自动完成都应该适用于SSOAdmin服务。 不需要显式的类型注释,请照常编写boto3代码。在

PyCharm

  • 在您的环境中安装boto-stubs[sso-admin]python -m pip install 'boto3-stubs[sso-admin]'

类型检查和自动完成都应该适用于SSOAdmin服务。 不需要显式的类型注释,请照常编写boto3代码。 自动完成在大型项目或安装了大量boto3-stubs子模块时可能会很慢。在

其他IDE

没有经过测试,但是只要您的IDE支持mypy或{},一切都应该正常。在

mypy

  • 安装mypypython -m pip install mypy
  • 在您的环境中安装boto-stubs[sso-admin]python -m pip install 'boto3-stubs[sso-admin]'
  • 像往常一样运行mypy

类型检查应该适用于SSOAdmin服务。 不需要显式的类型注释,请照常编写boto3代码。在

pyright

  • 安装pyrightyarn global add pyright
  • 在您的环境中安装boto-stubs[sso-admin]python -m pip install 'boto3-stubs[sso-admin]'
  • 或者,您可以将boto3-stubs安装到typings文件夹中。在

类型检查应该适用于SSOAdmin服务。 不需要显式的类型注释,请照常编写boto3代码。在

显式类型批注

客户端注释

SSOAdminClientboto3.client("sso-admin")提供注释。在

^{pr2}$

分页器注释

mypy_boto3_sso_admin.paginator模块包含所有分页器的类型注释。在

frommypy_boto3_sso_adminimportSSOAdminClientfrommypy_boto3_sso_admin.paginatorimport(ListAccountAssignmentCreationStatusPaginator,ListAccountAssignmentDeletionStatusPaginator,ListAccountAssignmentsPaginator,ListAccountsForProvisionedPermissionSetPaginator,ListInstancesPaginator,ListManagedPoliciesInPermissionSetPaginator,ListPermissionSetProvisioningStatusPaginator,ListPermissionSetsPaginator,ListPermissionSetsProvisionedToAccountPaginator,ListTagsForResourcePaginator,)client:SSOAdminClient=boto3.client("sso-admin")# Explicit type annotations are optional here# Type should be correctly discovered by mypy and IDEs# VSCode requires explicit type annotationslist_account_assignment_creation_status_paginator:ListAccountAssignmentCreationStatusPaginator=client.get_paginator("list_account_assignment_creation_status")list_account_assignment_deletion_status_paginator:ListAccountAssignmentDeletionStatusPaginator=client.get_paginator("list_account_assignment_deletion_status")list_account_assignments_paginator:ListAccountAssignmentsPaginator=client.get_paginator("list_account_assignments")list_accounts_for_provisioned_permission_set_paginator:ListAccountsForProvisionedPermissionSetPaginator=client.get_paginator("list_accounts_for_provisioned_permission_set")list_instances_paginator:ListInstancesPaginator=client.get_paginator("list_instances")list_managed_policies_in_permission_set_paginator:ListManagedPoliciesInPermissionSetPaginator=client.get_paginator("list_managed_policies_in_permission_set")list_permission_set_provisioning_status_paginator:ListPermissionSetProvisioningStatusPaginator=client.get_paginator("list_permission_set_provisioning_status")list_permission_sets_paginator:ListPermissionSetsPaginator=client.get_paginator("list_permission_sets")list_permission_sets_provisioned_to_account_paginator:ListPermissionSetsProvisionedToAccountPaginator=client.get_paginator("list_permission_sets_provisioned_to_account")list_tags_for_resource_paginator:ListTagsForResourcePaginator=client.get_paginator("list_tags_for_resource")

键入<3词>

mypy_boto3_sso_admin.type_defs模块包含组合的结构和形状 以进行额外的类型检查。在

frommypy_boto3_sso_admin.type_defsimport(AccessControlAttributeTypeDef,AccessControlAttributeValueTypeDef,AccountAssignmentOperationStatusMetadataTypeDef,AccountAssignmentOperationStatusTypeDef,AccountAssignmentTypeDef,AttachedManagedPolicyTypeDef,CreateAccountAssignmentResponseTypeDef,CreatePermissionSetResponseTypeDef,DeleteAccountAssignmentResponseTypeDef,DescribeAccountAssignmentCreationStatusResponseTypeDef,DescribeAccountAssignmentDeletionStatusResponseTypeDef,DescribeInstanceAccessControlAttributeConfigurationResponseTypeDef,DescribePermissionSetProvisioningStatusResponseTypeDef,DescribePermissionSetResponseTypeDef,GetInlinePolicyForPermissionSetResponseTypeDef,InstanceAccessControlAttributeConfigurationTypeDef,InstanceMetadataTypeDef,ListAccountAssignmentCreationStatusResponseTypeDef,ListAccountAssignmentDeletionStatusResponseTypeDef,ListAccountAssignmentsResponseTypeDef,ListAccountsForProvisionedPermissionSetResponseTypeDef,ListInstancesResponseTypeDef,ListManagedPoliciesInPermissionSetResponseTypeDef,ListPermissionSetProvisioningStatusResponseTypeDef,ListPermissionSetsProvisionedToAccountResponseTypeDef,ListPermissionSetsResponseTypeDef,ListTagsForResourceResponseTypeDef,OperationStatusFilterTypeDef,PaginatorConfigTypeDef,PermissionSetProvisioningStatusMetadataTypeDef,PermissionSetProvisioningStatusTypeDef,PermissionSetTypeDef,ProvisionPermissionSetResponseTypeDef,TagTypeDef,)defget_structure()->AccessControlAttributeTypeDef:return{...}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Spring启动启用HTTPS   actionscript 3 java中的这个[“var”+“name”]   java只匹配给定集合中一个字符的一个匹配项   java Hibernate:防止角色表中出现多个相同的条目   javajersey+Spring注入servlet请求   java HtmlEditor javafx失去焦点   java Apache Wicket AjaxRequestTarget ListView组件未刷新或更新   mysql java。无法将lang.String转换为java。sql。时间戳   java将巨大的整数文件(在一行中)拆分为具有内存限制的已排序块   安卓如何完全关闭proguard?   安装Eclipse和Android SDK后的java“无AVD可用”消息   java动态显示图像视图   java在Spring中还有哪些WebsocketClient实现?   java Glassfish需要很长时间才能重新启动   使用Java简单串行连接器将pc与arduino连接   java如何在camel文件组件配置中结合readLockCheckInterval和maxMessagesPerPoll?   单击Android时的java预览图像   java如何将字节数组转换为ByteArrayOutputStream