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

tison pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 3ee1b325c change old python example (#2059)
3ee1b325c is described below

commit 3ee1b325c48a5058c9124f5e5a9adcbca5030374
Author: Pablo Nicolás Estevez <[email protected]>
AuthorDate: Tue Jan 27 02:39:01 2026 +0000

    change old python example (#2059)
    
    Co-authored-by: tison <[email protected]>
---
 docs/development.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/development.rst b/docs/development.rst
index eebce5d66..d9d5c77a0 100644
--- a/docs/development.rst
+++ b/docs/development.rst
@@ -444,12 +444,12 @@ include extra code to make sure it works in all the 
supported versions.
 
 Some examples which show how to handle those cases are described below.
 
-Context Managers
+Type annotation for unions
 ~~~~~~~~~~~~~~~~
 
-Context managers aren't available in Python 2.5 by default. If you want to use
-them make sure to put from ``__future__ import with_statement`` on top of the
-file where you use them.
+In Python 3.9 and below, the pipe character (``|``) cannot be used for union 
+types in type annotations. Instead, you should use ``Union`` from the 
``typing``
+module:
 
 Utility functions for cross-version compatibility
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to