You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by gi...@apache.org on 2020/09/23 00:06:12 UTC

[beam] branch asf-site updated: Publishing website 2020/09/23 00:05:46 at commit 6d377a3

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new df9e7dc  Publishing website 2020/09/23 00:05:46 at commit 6d377a3
df9e7dc is described below

commit df9e7dc5abd8d2bee104261b31ff5dffbaeeaf27
Author: jenkins <bu...@apache.org>
AuthorDate: Wed Sep 23 00:05:47 2020 +0000

    Publishing website 2020/09/23 00:05:46 at commit 6d377a3
---
 .../documentation/sdks/python-type-safety/index.html                  | 4 +++-
 website/generated-content/sitemap.xml                                 | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/website/generated-content/documentation/sdks/python-type-safety/index.html b/website/generated-content/documentation/sdks/python-type-safety/index.html
index a23fdb6..cd42e67 100644
--- a/website/generated-content/documentation/sdks/python-type-safety/index.html
+++ b/website/generated-content/documentation/sdks/python-type-safety/index.html
@@ -4,7 +4,9 @@
 <a href=/ class=navbar-brand><img alt=Brand style=height:25px src=/images/beam_logo_navbar.png></a></div><div class="navbar-mask closed"></div><div id=navbar class="navbar-container closed"><ul class="nav navbar-nav"><li><a href=/get-started/beam-overview/>Get Started</a></li><li><a href=/documentation/>Documentation</a></li><li><a href=/documentation/sdks/java/>Languages</a></li><li><a href=/documentation/runners/capability-matrix/>RUNNERS</a></li><li><a href=/roadmap/>Roadmap</a></li>< [...]
 The Beam SDK for Python implements a subset of <a href=https://www.python.org/dev/peps/pep-0484/>PEP 484</a> and aims to follow it as closely as possible in its own typehints module.</p><p>These flags control Beam type safety:</p><ul><li><p><code>--no_pipeline_type_check</code></p><p>Disables type checking during pipeline construction.
 Default is to perform these checks.</p></li><li><p><code>--runtime_type_check</code></p><p>Enables runtime type checking of every element.
-This may affect pipeline performance, so the default is to skip these checks.</p></li></ul><h2 id=benefits-of-type-hints>Benefits of Type Hints</h2><p>When you use type hints, Beam raises exceptions during pipeline construction time, rather than runtime.
+This may affect pipeline performance, so the default is to skip these checks.</p></li><li><p><code>--type_check_additional</code></p><p>Enables additional type checks. These are no enabled by default to preserve
+backwards compatibility. This flag accepts a comma-separate list of options:</p><ul><li><code>all</code>: Enable all additional checks.</li><li><code>ptransform_fn</code>: Enable type hint decorators when used with the
+<code>@ptransform_fn</code> decorator.</li></ul></li></ul><h2 id=benefits-of-type-hints>Benefits of Type Hints</h2><p>When you use type hints, Beam raises exceptions during pipeline construction time, rather than runtime.
 For example, Beam generates an exception if it detects that your pipeline applies mismatched <code>PTransforms</code> (where the expected outputs of one transform do not match the expected inputs of the following transform).
 These exceptions are raised at pipeline construction time, regardless of where your pipeline will execute.
 Introducing type hints for the <code>PTransforms</code> you define allows you to catch potential bugs up front in the local runner, rather than after minutes of execution into a deep, complex pipeline.</p><p>Consider the following example, in which <code>numbers</code> is a <code>PCollection</code> of <code>str</code> values:</p><div class=language-py><div class=highlight><pre class=chroma><code class=language-py data-lang=py><span class=n>p</span> <span class=o>=</span> <span class=n>Te [...]
diff --git a/website/generated-content/sitemap.xml b/website/generated-content/sitemap.xml
index a2bde42..8bcdabc 100644
--- a/website/generated-content/sitemap.xml
+++ b/website/generated-content/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/blog/beam-2.24.0/</loc><lastmod>2020-09-18T12:38:38-07:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2020-09-18T12:38:38-07:00</lastmod></url><url><loc>/blog/</loc><lastmod>2020-09-18T12:38:38-07:00</lastmod></url><url><loc>/categories/</loc><lastmod>2020-09-18T12:38:38-07:00</lastmod></url><url><loc>/blog/p [...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/blog/beam-2.24.0/</loc><lastmod>2020-09-18T12:38:38-07:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2020-09-18T12:38:38-07:00</lastmod></url><url><loc>/blog/</loc><lastmod>2020-09-18T12:38:38-07:00</lastmod></url><url><loc>/categories/</loc><lastmod>2020-09-18T12:38:38-07:00</lastmod></url><url><loc>/blog/p [...]
\ No newline at end of file