[
https://issues.apache.org/jira/browse/AVRO-3571?focusedWorklogId=788976&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-788976
]
ASF GitHub Bot logged work on AVRO-3571:
----------------------------------------
Author: ASF GitHub Bot
Created on: 08/Jul/22 13:13
Start Date: 08/Jul/22 13:13
Worklog Time Spent: 10m
Work Description: kojiromike commented on code in PR #1756:
URL: https://github.com/apache/avro/pull/1756#discussion_r916803181
##########
lang/py/avro/io.py:
##########
@@ -204,11 +204,12 @@ def _map_iterator(node: ValidationNode) ->
ValidationNodeGeneratorType:
class BinaryDecoder:
"""Read leaf values."""
+
_reader: IO[bytes]
def __init__(self, reader: IO[bytes]) -> None:
"""
- Reader is a Python object on which we can call read, seek, and tell.
+ `reader` is a Python object on which we can call `read`, seek, and
tell.
Review Comment:
For consistency, `seek` and `tell` should be backtick-quoted as well.
Issue Time Tracking
-------------------
Worklog Id: (was: 788976)
Time Spent: 1h 40m (was: 1.5h)
> Python code refactor and rearrangement
> --------------------------------------
>
> Key: AVRO-3571
> URL: https://issues.apache.org/jira/browse/AVRO-3571
> Project: Apache Avro
> Issue Type: Improvement
> Components: python
> Reporter: Diptonil Roy
> Priority: Minor
> Labels: beginner, easyfix, newbie, pull-request-available
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> The changes made are:
> # Code altered according to PEP 8 conventions. Files changed are: io.py,
> constants.py, schema.py, codecs.py, datafile.py and compatibility.py.
> # General constants INT_MIN_VALUE, INT_MAX_VALUE, LONG_MIN_VALUE &
> LONG_MAX_VALUE shifted from schema.py to constants.py for clarity and better
> organization.
> (This is my first attempt to contribute to any open source project, not only
> this project. If I have made any errors or have misunderstood any step,
> please forgive me. I would be happy to adhere to any suggestions)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)