[issue39572] [typing] TypedDict's 'total' argument is undocumented

2021-04-22 Thread miss-islington


miss-islington  added the comment:


New changeset bc5a1a7adf0d0154cb3f247da84146dd51997540 by Miss Islington (bot) 
in branch '3.9':
bpo-39572: Address typo in CHANGELOG. (GH-24999)
https://github.com/python/cpython/commit/bc5a1a7adf0d0154cb3f247da84146dd51997540


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2021-04-22 Thread miss-islington


miss-islington  added the comment:


New changeset 6afb0a8078ff3fc93adc4177565c56f820ca2880 by Simon Charette in 
branch 'master':
bpo-39572: Address typo in CHANGELOG. (GH-24999)
https://github.com/python/cpython/commit/6afb0a8078ff3fc93adc4177565c56f820ca2880


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2021-04-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24269
pull_request: https://github.com/python/cpython/pull/25545

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2021-03-23 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 6.0 -> 7.0
pull_requests: +23757
pull_request: https://github.com/python/cpython/pull/24999

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-19 Thread Guido van Rossum


Guido van Rossum  added the comment:

Go for it. Use the same bug number.

On Wed, Feb 19, 2020 at 02:30 Ananthakrishnan 
wrote:

>
> Ananthakrishnan  added the comment:
>
> yes,I'm interested in writing docs for the `__required_keys__` and
> `__total_keys__` attributes.
>
> --
>
> ___
> Python tracker 
> 
> ___
>
-- 
--Guido (mobile)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-19 Thread Ananthakrishnan


Ananthakrishnan  added the comment:

yes,I'm interested in writing docs for the `__required_keys__` and 
`__total_keys__` attributes.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Guido van Rossum


Guido van Rossum  added the comment:

Separately, would you also be interested in writing docs for the `__total__` 
class attribute of TypedDict subclasses (3.8 and 3.9) and for the 
`__required_keys__` and `__total_keys__` attributes (only in 3.9)? (Sorry, 
there's no document you can crib these from. :-)

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread miss-islington

miss-islington  added the comment:


New changeset 44c690112d96a81fe02433de7900a4f8f9457012 by Miss Islington (bot) 
in branch '3.8':
bpo-39572: Document ’total’ flag of TypedDict (GH-18554)
https://github.com/python/cpython/commit/44c690112d96a81fe02433de7900a4f8f9457012


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17936
pull_request: https://github.com/python/cpython/pull/18556

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Guido van Rossum

Guido van Rossum  added the comment:


New changeset ab6423fe2de0ed5f8a0dc86a9c7070229326b0f0 by ananthan-123 in 
branch 'master':
bpo-39572: Document ’total’ flag of TypedDict (GH-18554)
https://github.com/python/cpython/commit/ab6423fe2de0ed5f8a0dc86a9c7070229326b0f0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Ananthakrishnan


Change by Ananthakrishnan :


--
keywords: +patch
pull_requests: +17935
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/18554

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Ananthakrishnan


Ananthakrishnan  added the comment:

yes,I'm interested.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Guido van Rossum


Guido van Rossum  added the comment:

There's no __total__ argument, but there is a __total__ attribute. There are 
also (new in 3.9) __required_keys__ and __total_keys__ attributes.

Are you interested in submitting a PR with the needed doc changes?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Ananthakrishnan


Ananthakrishnan  added the comment:

It will be usefull if we document _total_ argument also.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Guido van Rossum


Change by Guido van Rossum :


--
keywords: +easy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Ananthakrishnan


Ananthakrishnan  added the comment:

https://stackoverflow.com/questions/58427394/what-is-the-meaning-of-total-dunder-attribute-in-python-3

questions about this.

--
nosy: +Ananthakrishnan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-06 Thread Brett Cannon


New submission from Brett Cannon :

The docs mention __total__, but there's no mention of how to actually set that 
attribute, nor what it actually represents.

P.S. https://github.com/python/cpython/blob/master/Lib/typing.py#L16 says 
TypedDict "may be added soon"; I think that's outdated. ;)

--
assignee: docs@python
components: Documentation
messages: 361503
nosy: brett.cannon, docs@python, gvanrossum, levkivskyi
priority: normal
severity: normal
stage: needs patch
status: open
title: [typing] TypedDict's 'total' argument is undocumented
versions: Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com