text: 
  
  TITLE
  tokenizer decode method
  
  COMMENTS
  1
  
  REACTIONS
  +1: 0
  -1: 0
  laugh: 0
  hooray: 0
  heart: 0
  rocket: 0
  eyes: 0
  
  BODY
  <!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
       Don't forget to fill out the missing fields in that output! -->
  
  - `transformers` version: 4.1.1
  - Platform: Windows-10-10.0.19041-SP0
  - Python version: 3.7.9
  - PyTorch version (GPU?): 1.7.1+cu101 (True)
  - Tensorflow version (GPU?): not installed (NA)
  - Using GPU in script?: No
  - Using distributed or parallel set-up in script?: No
  
  ### Who can help
  <!-- Your issue will be replied to more quickly if you can figure out the right person to tag with @
   If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
   Please tag fewer than 3 people.
  
   albert, bert, GPT2, XLM: @LysandreJik
   tokenizers: @mfuntowicz
   Trainer: @sgugger
   Speed and Memory Benchmarks: @patrickvonplaten
   Model Cards: @julien-c
   TextGeneration: @TevenLeScao
   examples/distillation: @VictorSanh
   nlp datasets: [different repo](https://github.com/huggingface/nlp)
   rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)
   Text Generation: @patrickvonplaten @TevenLeScao
   Blenderbot: @patrickvonplaten
   Bart: @patrickvonplaten
   Marian: @patrickvonplaten
   Pegasus: @patrickvonplaten
   mBART: @patrickvonplaten
   T5: @patrickvonplaten
   Longformer/Reformer: @patrickvonplaten
   TransfoXL/XLNet: @TevenLeScao
   RAG: @patrickvonplaten, @lhoestq
   FSMT: @stas00
   examples/seq2seq: @patil-suraj
   examples/bert-loses-patience: @JetRunner
   ray/raytune: @richardliaw @amogkam
   tensorflow: @jplu
   examples/token-classification: @stefan-it
   documentation: @sgugger
   -->
  
  @mfuntowicz
  
  ## Information
  
  When I learn the source code of the tokenizer method `decode`, I found a problem in the **line 719 of the file `tokenization_utils.py`**. In my view, the type of the variable `token` is `str`, while the type of the property `all_special_ids` is `List[int]`. Although this problem will not raise error, even has no effect to the `decode` method, I still think this is a case which is need to be fixed for us to understand.
  
  
  <!-- If you have code snippets, error messages, stack traces please provide them here as well.
       Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
       Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.-->
  
  ## Expected behavior
  
  <!-- A clear and concise description of what you would expect to happen. -->
  
  
  I think it is required to replace `self.all_special_ids` with `self.all_special_tokens` in the **line 719 of the file `tokenization_utils.py`**.