質問編集履歴

1

追記

2022/12/30 16:20

投稿

takahiro00
takahiro00

スコア84

test CHANGED
File without changes
test CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  pythonでtweepyを使ってTwitterのアンフォローをしたいのですが、
4
4
  api.destroy_friendship()でアンフォローする際にエラーになってしまいます。
5
+
6
+ TypeError: destroy_friendship() takes 1 positional argument but 2 were given
7
+ 上記の引数に2つ値が設定されてる旨のメッセージが出てますが、
8
+ api.destroy_friendship(f) なので、引数は一つしか設定されていないはずです。
5
9
 
6
10
  ご教示お願いいたします。
7
11
  ### 発生している問題・エラーメッセージ