Skip to content

Commit 15f7ef7

Browse files
Avasamabravalheri
andauthored
Apply suggestions from code review
Co-authored-by: Anderson Bravalheri <[email protected]>
1 parent fb160fe commit 15f7ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg_resources/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def get_resource_stream(self, manager, resource_name):
567567
`manager` must be an ``IResourceManager``"""
568568

569569
def get_resource_string(self, manager, resource_name) -> bytes:
570-
"""Return a bytes string containing the contents of `resource_name`
570+
"""Return the contents of `resource_name` as :obj:`bytes`
571571
572572
`manager` must be an ``IResourceManager``"""
573573

@@ -1204,7 +1204,7 @@ def resource_stream(self, package_or_requirement, resource_name):
12041204
)
12051205

12061206
def resource_string(self, package_or_requirement, resource_name) -> bytes:
1207-
"""Return specified resource as a bytes string"""
1207+
"""Return specified resource as :obj:`bytes`"""
12081208
return get_provider(package_or_requirement).get_resource_string(
12091209
self, resource_name
12101210
)

0 commit comments

Comments
 (0)