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

mypy-boto3-license-manager的Python项目详细描述


mypy-boto3-许可证管理器

PyPI - mypy-boto3-license-managerPyPI - Python VersionDocs

boto3.typed

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

mypy-boto3-buider 4.2.0生成。在

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

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

boto3-stubs demo

如何安装

LicenseManager服务安装boto3-stubs。在

python -m pip install boto3-stubs[license-manager]

使用

VSCode

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

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

PyCharm

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

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

其他IDE

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

mypy

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

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

pyright

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

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

显式类型批注

客户端注释

LicenseManagerClientboto3.client("license-manager")提供注释。在

^{pr2}$

分页器注释

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

frommypy_boto3_license_managerimportLicenseManagerClientfrommypy_boto3_license_manager.paginatorimport(ListAssociationsForLicenseConfigurationPaginator,ListLicenseConfigurationsPaginator,ListLicenseSpecificationsForResourcePaginator,ListResourceInventoryPaginator,ListUsageForLicenseConfigurationPaginator,)client:LicenseManagerClient=boto3.client("license-manager")# Explicit type annotations are optional here# Type should be correctly discovered by mypy and IDEs# VSCode requires explicit type annotationslist_associations_for_license_configuration_paginator:ListAssociationsForLicenseConfigurationPaginator=client.get_paginator("list_associations_for_license_configuration")list_license_configurations_paginator:ListLicenseConfigurationsPaginator=client.get_paginator("list_license_configurations")list_license_specifications_for_resource_paginator:ListLicenseSpecificationsForResourcePaginator=client.get_paginator("list_license_specifications_for_resource")list_resource_inventory_paginator:ListResourceInventoryPaginator=client.get_paginator("list_resource_inventory")list_usage_for_license_configuration_paginator:ListUsageForLicenseConfigurationPaginator=client.get_paginator("list_usage_for_license_configuration")

键入的措辞

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

frommypy_boto3_license_manager.type_defsimport(AcceptGrantResponseTypeDef,AutomatedDiscoveryInformationTypeDef,BorrowConfigurationTypeDef,CheckoutBorrowLicenseResponseTypeDef,CheckoutLicenseResponseTypeDef,ConsumedLicenseSummaryTypeDef,ConsumptionConfigurationTypeDef,CreateGrantResponseTypeDef,CreateGrantVersionResponseTypeDef,CreateLicenseConfigurationResponseTypeDef,CreateLicenseResponseTypeDef,CreateLicenseVersionResponseTypeDef,CreateTokenResponseTypeDef,DatetimeRangeTypeDef,DeleteGrantResponseTypeDef,DeleteLicenseResponseTypeDef,EntitlementDataTypeDef,EntitlementTypeDef,EntitlementUsageTypeDef,ExtendLicenseConsumptionResponseTypeDef,FilterTypeDef,GetAccessTokenResponseTypeDef,GetGrantResponseTypeDef,GetLicenseConfigurationResponseTypeDef,GetLicenseResponseTypeDef,GetLicenseUsageResponseTypeDef,GetServiceSettingsResponseTypeDef,GrantedLicenseTypeDef,GrantTypeDef,InventoryFilterTypeDef,IssuerDetailsTypeDef,IssuerTypeDef,LicenseConfigurationAssociationTypeDef,LicenseConfigurationTypeDef,LicenseConfigurationUsageTypeDef,LicenseOperationFailureTypeDef,LicenseSpecificationTypeDef,LicenseTypeDef,LicenseUsageTypeDef,ListAssociationsForLicenseConfigurationResponseTypeDef,ListDistributedGrantsResponseTypeDef,ListFailuresForLicenseConfigurationOperationsResponseTypeDef,ListLicenseConfigurationsResponseTypeDef,ListLicenseSpecificationsForResourceResponseTypeDef,ListLicensesResponseTypeDef,ListLicenseVersionsResponseTypeDef,ListReceivedGrantsResponseTypeDef,ListReceivedLicensesResponseTypeDef,ListResourceInventoryResponseTypeDef,ListTagsForResourceResponseTypeDef,ListTokensResponseTypeDef,ListUsageForLicenseConfigurationResponseTypeDef,ManagedResourceSummaryTypeDef,MetadataTypeDef,OrganizationConfigurationTypeDef,PaginatorConfigTypeDef,ProductInformationFilterTypeDef,ProductInformationTypeDef,ProvisionalConfigurationTypeDef,ReceivedMetadataTypeDef,RejectGrantResponseTypeDef,ResourceInventoryTypeDef,TagTypeDef,TokenDataTypeDef,)defget_structure()->AutomatedDiscoveryInformationTypeDef:return{...}

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

推荐PyPI第三方库


热门话题
java JMF替换   java从apache网站导入库   如何在cmd/sudo中输入参数并在运行时使用它们?(爪哇)   java如何在page zk framework中触发任何选定的手动事件时保存textbox值   java如何在安卓应用程序中读取弹出窗口中的文本?   java my jsonarray不显示在我的arraylist中   java Spring如何用环境变量替换${}?   JavaRxJava2:迭代项并获得与条件匹配的项   java My mavenearplugin不尊重bundleFileName吗?   java Dropwizard V2端点   java修复语法或拼写错误?   java Netty 4.0 HTTP块内存泄漏?   链表Java结构(泛型)   java在Windows下的Eclipse SWT中使用64位XulRunner