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/07/11 00:02:15 UTC

[beam] branch asf-site updated: Publishing website 2020/07/11 00:02:02 at commit 6529780

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 9dac807  Publishing website 2020/07/11 00:02:02 at commit 6529780
9dac807 is described below

commit 9dac807f00e0ad942d6d79a710007817785656c8
Author: jenkins <us...@infra.apache.org>
AuthorDate: Sat Jul 11 00:02:02 2020 +0000

    Publishing website 2020/07/11 00:02:02 at commit 6529780
---
 .../generated-content/documentation/sdks/python-type-safety/index.html  | 2 +-
 website/generated-content/sitemap.xml                                   | 2 +-
 2 files changed, 2 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 0661497..4c3d20f 100644
--- a/website/generated-content/documentation/sdks/python-type-safety/index.html
+++ b/website/generated-content/documentation/sdks/python-type-safety/index.html
@@ -61,7 +61,7 @@ If the input to <code>MyTransform</code> is of type <code>str</code>, Beam will
     <span class=k>return</span> <span class=n>pcoll</span> <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>Map</span><span class=p>(</span><span class=k>lambda</span> <span class=n>x</span><span class=p>:</span> <span class=p>(</span><span class=nb>len</span><span class=p>(</span><span class=n>x</span><span class=p>),</span> <span class=n>x</span><span class=p>))</span>
 
 <span class=n>words_with_lens</span> <span class=o>=</span> <span class=n>words</span> <span class=o>|</span> <span class=n>MyTransform</span><span class=p>()</span></code></pre></div></div><h2 id=kinds-of-type-hints>Kinds of Type Hints</h2><p>You can use type hints with any class, including Python primitive types, container classes, and user-defined classes. All classes, such as <code>int</code>, <code>float</code>, and user-defined classes, can be used to define type hints, called <str [...]
-It also supports Python&rsquo;s typing module types, which are internally converted to Beam internal types.</p><blockquote><p>For new code, it is recommended to use <a href=https://docs.python.org/3/library/typing.html><strong>typing</strong></a> module types.</p></blockquote><h3 id=simple-type-hints>Simple Type Hints</h3><p>Type hints can be of any class, from <code>int</code> and <code>str</code>, to user-defined classes. If you have a class as a type hint, you may want to define a cod [...]
+It also supports Python&rsquo;s typing module types, which are internally converted to Beam internal types.</p><blockquote><p>For new code, it is recommended to use <a href=https://docs.python.org/3/library/typing.html><strong>typing</strong></a> module types.</p></blockquote><h3 id=simple-type-hints>Simple Type Hints</h3><p>Type hints can be of any class, from <code>int</code> and <code>str</code>, to user-defined classes. If you have a class as a type hint, you may want to define a cod [...]
 <span class=n>p</span> <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>Create</span><span class=p>([</span><span class=s1>&#39;a&#39;</span><span class=p>])</span> <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>Map</span><span class=p>(</span><span class=k>lambda</span> <span class=n>x</span><span class=p>:</span> <span class=mi>3</span><span class=p>)</span><span class=o>.</span><span class=n>with_output_types</spa [...]
 <span class=n>p</span> <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>Create</span><span class=p>([</span><span class=s1>&#39;a&#39;</span><span class=p>])</span> <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>Map</span><span class=p>(</span><span class=k>lambda</span> <span class=n>x</span><span class=p>:</span> <span class=mi>3</span><span class=p>)</span><span class=o>.</span><span class=n>with_output_types</spa [...]
 <span class=n>p</span><span class=o>.</span><span class=n>run</span><span class=p>()</span></code></pre></div></div><p>Note that because runtime type checks are done for each <code>PCollection</code> element, enabling this feature may incur a significant performance penalty. It is therefore recommended that runtime type checks are disabled for production pipelines.</p><h2 id=use-of-type-hints-in-coders>Use of Type Hints in Coders</h2><p>When your pipeline reads, writes, or otherwise mate [...]
diff --git a/website/generated-content/sitemap.xml b/website/generated-content/sitemap.xml
index 4804c88..d197b45 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.22.0/</loc><lastmod>2020-06-08T14:13:37-07:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2020-06-08T14:13:37-07:00</lastmod></url><url><loc>/blog/</loc><lastmod>2020-06-08T14:13:37-07:00</lastmod></url><url><loc>/categories/</loc><lastmod>2020-06-08T14:13:37-07:00</lastmod></url><url><loc>/blog/b [...]
\ 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.22.0/</loc><lastmod>2020-06-08T14:13:37-07:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2020-06-08T14:13:37-07:00</lastmod></url><url><loc>/blog/</loc><lastmod>2020-06-08T14:13:37-07:00</lastmod></url><url><loc>/categories/</loc><lastmod>2020-06-08T14:13:37-07:00</lastmod></url><url><loc>/blog/b [...]
\ No newline at end of file