Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
f7f82999
Kaydet (Commit)
f7f82999
authored
Eyl 11, 2016
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #28073: Improve wording around None. Michael Lee. (3.5->3.6)
üst
050af5d8
1816dfe6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
typing.rst
Doc/library/typing.rst
+4
-2
No files found.
Doc/library/typing.rst
Dosyayı görüntüle @
f7f82999
...
...
@@ -59,6 +59,9 @@ Type aliases are useful for simplifying complex type signatures. For example::
servers: List[Tuple[Tuple[str, int], Dict[str, str]]]) -> None:
...
Note that ``None`` as a type hint is a special case and is replaced by
``type(None)``.
NewType
-------
...
...
@@ -148,7 +151,6 @@ For example::
It is possible to declare the return type of a callable without specifying
the call signature by substituting a literal ellipsis
for the list of arguments in the type hint: ``Callable[..., ReturnType]``.
``None`` as a type hint is a special case and is replaced by ``type(None)``.
Generics
--------
...
...
@@ -443,7 +445,7 @@ The module defines the following classes, functions and decorators:
Optional type.
``Optional[X]`` is equivalent to ``Union[X,
type(None)
]``.
``Optional[X]`` is equivalent to ``Union[X,
None
]``.
Note that this is not the same concept as an optional argument,
which is one that has a default. An optional argument with a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment