-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BEAM-7746] Add python type hints (part 2) #10367
Commits on Jan 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2c00922 - Browse repository at this point
Copy the full SHA 2c00922View commit details -
[BEAM-7746] Typing fixes that require runtime code changes
Minor adjustments to runtime code required to silence certain errors. Two common patterns: - explicitly return None from functions that also return non-None - assert that optional attributes are non-None before using them, if there are no other conditionals present to ensure this.
Configuration menu - View commit details
-
Copy full SHA for 882c865 - Browse repository at this point
Copy the full SHA 882c865View commit details -
[BEAM-7746] Avoid creating attributes dynamically, so that they can b…
…e statically analyzed
Configuration menu - View commit details
-
Copy full SHA for bfc6e55 - Browse repository at this point
Copy the full SHA bfc6e55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8353a28 - Browse repository at this point
Copy the full SHA 8353a28View commit details -
[BEAM-7746] Explicitly unpack tuple to avoid inferring unbounded tupl…
…e (Tuple[str, ...])
Configuration menu - View commit details
-
Copy full SHA for 29e243e - Browse repository at this point
Copy the full SHA 29e243eView commit details -
[BEAM-7746] Generate files with protobuf urns as part of gen_protos b…
…uild process This fixes numerous errors generated throughout the code because mypy cannot track the dynamic setattr binding that was done by common_urns. The change also necessitated updating a few doctrings to prevent this error: more than one target found for cross-reference u'DisplayData': apache_beam.transforms.display.DisplayData apache_beam.portability.api.beam_runner_api_pb2_urns.DisplayData
Configuration menu - View commit details
-
Copy full SHA for 374db87 - Browse repository at this point
Copy the full SHA 374db87View commit details -
[BEAM-7746] Move name and coder to base StateSpec class
There are several places in the code where it is assumed that these are part of the abstract StateSpec.
Configuration menu - View commit details
-
Copy full SHA for bc21b25 - Browse repository at this point
Copy the full SHA bc21b25View commit details -
[BEAM-7746] Remove reference to missing attribute in statesampler_slo…
…w.StateSampler.reset() statesampler_slow.StateSampler does not have _states_by_name attribute. Only its fast counterpart does.
Configuration menu - View commit details
-
Copy full SHA for 80e2c2e - Browse repository at this point
Copy the full SHA 80e2c2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f14ce9 - Browse repository at this point
Copy the full SHA 9f14ce9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee13d08 - Browse repository at this point
Copy the full SHA ee13d08View commit details -
[BEAM-7746] Add StateHandler abstract base class
This gives us a type that we can use to ensure all handlers meet the same protocol
Configuration menu - View commit details
-
Copy full SHA for 83866ec - Browse repository at this point
Copy the full SHA 83866ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6189010 - Browse repository at this point
Copy the full SHA 6189010View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ff01eb - Browse repository at this point
Copy the full SHA 3ff01ebView commit details -
[BEAM-7746] Fix tests that have the same name
Note that this means that tests that were previously being masked by other tests with the same name will now be run. There is a fix included for one such test.
Configuration menu - View commit details
-
Copy full SHA for f7f8792 - Browse repository at this point
Copy the full SHA f7f8792View commit details